play.db.ebean
Class EbeanPlugin

java.lang.Object
  extended by play.Plugin
      extended by play.db.ebean.EbeanPlugin
All Implemented Interfaces:
play.api.Plugin

public class EbeanPlugin
extends Plugin

A Play plugin that automatically manages Ebean configuration.


Constructor Summary
EbeanPlugin(Application application)
           
 
Method Summary
static java.lang.String generateEvolutionScript(com.avaje.ebean.EbeanServer server, com.avaje.ebean.config.ServerConfig config)
          Helper method that generates the required evolution to properly run Ebean.
 void onStart()
          Reads the configuration file and initialises required Ebean servers.
 
Methods inherited from class play.Plugin
enabled, onStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EbeanPlugin

public EbeanPlugin(Application application)
Method Detail

onStart

public void onStart()
Reads the configuration file and initialises required Ebean servers.

Specified by:
onStart in interface play.api.Plugin
Overrides:
onStart in class Plugin

generateEvolutionScript

public static java.lang.String generateEvolutionScript(com.avaje.ebean.EbeanServer server,
                                                       com.avaje.ebean.config.ServerConfig config)
Helper method that generates the required evolution to properly run Ebean.