|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PluginLifecycleListener
Performs global initialization and shutdown of a plugin. This class will be notified when the plugin is loaded and unloaded. This provides a place for plugin developers to allocate global resources needed by all plugin components and a place to clean up those resources.
Method Summary | |
---|---|
void |
initialize(PluginContext context)
When a plugin is being loaded, this method will be called. |
void |
shutdown()
When the plugin container shuts down and it unloads the plugin, this method will be called. |
Method Detail |
---|
void initialize(PluginContext context) throws Exception
context
- a context with information about the runtime plugin environment
Exception
- if the plugin finds that it should not be loaded, an exception should be thrown.
If thrown, this plugin will not be loaded and will be considered disabled. If
other plugins are dependent on this failed plugin, those other plugins will
fail to operate correctly.void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |