public interface PluginLifecycleListener
| Modifier and Type | Method and Description |
|---|---|
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.
|
void initialize(PluginContext context) throws Exception
context - a context with information about the runtime plugin environmentException - 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()
Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.