public abstract class AbstractContextPlugin extends BasePlugin implements ContextPlugin
INDEX_HIGH, INDEX_HIGHER, INDEX_HIGHEST, INDEX_LOW, INDEX_LOWER, INDEX_LOWEST, INDEX_NORMAL, INDEX_VERY_HIGH, INDEX_VERY_LOW| Constructor and Description |
|---|
AbstractContextPlugin() |
AbstractContextPlugin(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
deinitialize()
This method is called right before plugin destruction.
|
void |
deinstall(ContextManager<ServerContext> cm)
This method is called before server context tree is destroyed.
|
void |
deinstall(ServerContext context)
This method is called when a server context is destroyed or removed upon server shutdown.
|
void |
initialize()
This method is called right after plugin creation.
|
void |
install(ContextManager<ServerContext> cm)
This method is called when server context tree is fully loaded.
|
void |
install(ServerContext context)
This method is called when a new server context is created or loaded upon server startup.
|
void |
launch()
This method is called in the very end of server startup.
|
void |
shutdown()
This method is called in the very beginning of server shutdown.
|
compareTo, createGlobalConfigContext, createGlobalConfigContext, createUserConfigContext, doStart, doStop, getDescription, getGlobalConfigContext, getId, getPluginDirector, getShortId, getSortIndex, getUserConfigContext, globalDeinit, globalInit, globalStart, globalStop, setDescription, setId, setIndex, setPluginDirector, userDeinit, userInitclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateGlobalConfigContext, createUserConfigContext, getDescription, getGlobalConfigContext, getId, getShortId, getSortIndex, getUserConfigContext, globalDeinit, globalInit, globalStart, globalStop, userDeinit, userInitpublic AbstractContextPlugin()
public AbstractContextPlugin(java.lang.String name)
public void initialize()
throws PluginException
ContextPlugininitialize in interface ContextPluginPluginExceptionpublic void deinitialize()
throws PluginException
ContextPlugindeinitialize in interface ContextPluginPluginExceptionpublic void install(ContextManager<ServerContext> cm) throws ContextException, PluginException
ContextPlugininstall in interface ContextPlugincm - Server context managerContextException - If some context API calls from within this method have thrown an exceptionPluginException - If plugin internal error occurredpublic void deinstall(ContextManager<ServerContext> cm) throws ContextException, PluginException
ContextPlugindeinstall in interface ContextPlugincm - Server context managerContextException - If some context API calls from within this method have thrown an exceptionPluginException - If plugin internal error occurredpublic void install(ServerContext context) throws ContextException, PluginException
ContextPlugininstall in interface ContextPlugincontext - Server contextContextException - If some context API calls from within this method have thrown an exceptionPluginException - If plugin internal error occurredpublic void deinstall(ServerContext context) throws ContextException, PluginException
ContextPlugindeinstall in interface ContextPlugincontext - Server contextContextException - If some context API calls from within this method have thrown an exceptionPluginException - If plugin internal error occurredpublic void launch()
throws PluginException
ContextPluginlaunch in interface ContextPluginPluginException - If plugin internal error occurredpublic void shutdown()
throws PluginException
ContextPluginshutdown in interface ContextPluginPluginException - If plugin internal error occurred