|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.pc.plugin.PluginLifecycleListenerManagerImpl
public class PluginLifecycleListenerManagerImpl
| Constructor Summary | |
|---|---|
PluginLifecycleListenerManagerImpl()
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginLifecycleListenerManagerImpl()
| Method Detail |
|---|
public PluginLifecycleListener loadListener(PluginDescriptor pluginDescriptor,
PluginEnvironment pluginEnvironment)
throws PluginContainerException
PluginLifecycleListenerManager
loadListener in interface PluginLifecycleListenerManagerpluginDescriptor - 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 classpublic PluginLifecycleListener getListener(String pluginName)
PluginLifecycleListenerManager
getListener in interface PluginLifecycleListenerManagerpluginName - The name of the plugin
null if the plugin has not declared a listener or if the
listener has not yet been loaded.
public void setListener(String pluginName,
PluginLifecycleListener listener)
PluginLifecycleListenerManager
setListener in interface PluginLifecycleListenerManagerpluginName - The name of the pluginlistener - The initialized plugin lifecycle listenerpublic void shutdown()
PluginLifecycleListenerManager
shutdown in interface PluginLifecycleListenerManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||