turn DDL generation into plugin, allow for other plugins to run

This commit is contained in:
Richard Vowles committed 2013-04-07 21:56:24 +12:00
1 parent 22f67ee49a
commit cef9dd6cda
6 files changed
+77 -13

No files matched your search

@@ -0,0 +1,22 @@
package com.avaje.ebeaninternal.api;
import com.avaje.ebean.config.ServerConfig;
import com.avaje.ebean.config.dbplatform.DatabasePlatform;
/**
* Allows us to have more than one plugin (the ddl generator) active based on flags.
*
* author: Richard Vowles - http://gplus.to/RichardVowles
*/
public interface SpiEbeanPlugin {
/**
* initializes the plugin.
*
* @param server - the ebean server with extensions for all of the Ebean internals
* @param dbPlatform - the database we are using - this is available from the server, but it is provided for convenience
* @param serverConfig - the configured server information. It allows access to pre-collected information (but not the collector PropertySource, yet)
*/
public void setup(SpiEbeanServer server, DatabasePlatform dbPlatform, ServerConfig serverConfig);
public void execute(boolean online);
}