|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PluginLifecycleListenerManager
A manager API that provides operations for loading and instantiating
PluginLifecycleListener classes and caching of those objects. This API is
is used by PluginManager as it the plugin container service that is responsible
loading plugins and their corresponding classes.
| Method Summary | |
|---|---|
PluginLifecycleListener |
getListener(String pluginName)
Retrieves the cached listener for the specified plugin. |
PluginLifecycleListener |
loadListener(PluginDescriptor pluginDescriptor,
PluginEnvironment pluginEnvironment)
Loads and instantiates the listener class. |
void |
setListener(String pluginName,
PluginLifecycleListener listener)
Caches the listener for the specified plugin. |
void |
shutdown()
Clears and destroys the cache of listeners |
| Method Detail |
|---|
PluginLifecycleListener loadListener(PluginDescriptor pluginDescriptor,
PluginEnvironment pluginEnvironment)
throws PluginContainerException
pluginDescriptor - The parsed plugin descriptorpluginEnvironment - The plugin environment which is needed to perform the class loading
null if there is no listener
PluginContainerException - if there is an error instantiating the listener classPluginLifecycleListener getListener(String pluginName)
pluginName - The name of the plugin
null if the plugin has not declared a listener or if the
listener has not yet been loaded.
void setListener(String pluginName,
PluginLifecycleListener listener)
pluginName - The name of the pluginlistener - The initialized plugin lifecycle listenervoid shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||