io.ebean.plugin.Plugin Maven / Gradle / Ivy
package io.ebean.plugin;
/**
* A 'plugin' that wants to be configured on startup so it can use features of the Database itself.
*/
public interface Plugin {
/**
* Configure the plugin.
*/
void configure(SpiServer server);
/**
* Called just before the server starts indicating if it is coming up in online mode.
*/
void online(boolean online);
/**
* Called when the server is shutting down.
*
* Plugins should shutdown any resources they are using cleanly.
*
*/
void shutdown();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy