public interface ServerPluginComponent
| Modifier and Type | Method and Description |
|---|---|
void |
initialize(ServerPluginContext context)
When a plugin's container loads a plugin, this method will be called.
|
void |
shutdown()
When the plugin container shuts down and it unloads the plugin, this method will be called.
|
void |
start()
When a plugin container has been started (which occurs after all plugins are loaded), this
method is called to inform the plugin is can begin performing work.
|
void |
stop()
When a plugin container has been stopped (but before it unloads plugins), this
method is called to inform the plugin it should stop performing work and prepare
to shutdown.
|
void initialize(ServerPluginContext context) throws Exception
start().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 started and will be considered disabled. If
other plugins are dependent on this failed plugin, those other plugins will
fail to operate correctly.void start()
void stop()
void shutdown()
Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.