|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.plugin.pc.ServerPluginManager
org.rhq.enterprise.server.plugin.pc.perspective.PerspectiveServerPluginManager
public class PerspectiveServerPluginManager
This loads in all perspective server plugins that can be found. You can obtain a loaded plugin's
environment, including its classloader, from this object as well.
| Constructor Summary | |
|---|---|
PerspectiveServerPluginManager(PerspectiveServerPluginContainer pc)
|
|
| Method Summary | |
|---|---|
PerspectivePluginMetadataManager |
getMetadataManager()
An object that can be used to process and store all metadata from all perspective plugins. |
void |
initialize()
Initializes the plugin manager to prepare it to start loading plugins. |
void |
loadPlugin(ServerPluginEnvironment env,
boolean enabled)
Informs the plugin manager that a plugin with the given environment needs to be loaded. |
void |
shutdown()
Shuts down this manager. |
protected void |
startPlugin(String pluginName)
|
void |
startPlugins()
All of the plugins have been loaded, so now let the metadata manager sort through the definitions. |
protected void |
stopPlugin(String pluginName)
|
void |
stopPlugins()
|
void |
unloadPlugin(String pluginName)
Informs the plugin manager that a plugin with the given name is to be unloaded. |
| Methods inherited from class org.rhq.enterprise.server.plugin.pc.ServerPluginManager |
|---|
createServerPluginComponent, disablePlugin, enablePlugin, getLog, getParentPluginContainer, getPlugin, getPluginEnvironment, getPluginEnvironments, getServerPluginComponent, getServerPluginContext, instantiatePluginClass, isPluginEnabled, isPluginLoaded, loadPluginClass, rebuildServerPluginEnvironment, reloadPlugin, unloadPlugin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PerspectiveServerPluginManager(PerspectiveServerPluginContainer pc)
| Method Detail |
|---|
public void initialize()
throws Exception
ServerPluginManager
initialize in class ServerPluginManagerException - if failed to initializepublic void shutdown()
ServerPluginManagerunloaded.
shutdown in class ServerPluginManagerpublic PerspectivePluginMetadataManager getMetadataManager()
public void loadPlugin(ServerPluginEnvironment env,
boolean enabled)
throws Exception
ServerPluginManagerenabled is false, in which case the plugin will not
be initialized.
loadPlugin in class ServerPluginManagerenv - the environment of the plugin to be loadedenabled - true if the plugin should be initialized; false if
the plugin's existence should be noted but it should not be initialized or started
Exception - if the plugin manager cannot load the plugin or deems the plugin invalid.
Typically, this method will not throw an exception unless enabled is
true - loading a disabled plugin is trivial and should not
fail or throw an exception.protected void startPlugin(String pluginName)
startPlugin in class ServerPluginManagerpublic void startPlugins()
startPlugins in class ServerPluginManagerServerPluginManager.startPlugins()protected void stopPlugin(String pluginName)
stopPlugin in class ServerPluginManagerpublic void stopPlugins()
stopPlugins in class ServerPluginManager
public void unloadPlugin(String pluginName)
throws Exception
ServerPluginManager
unloadPlugin in class ServerPluginManagerpluginName - the name of the plugin to be unloaded
Exception - if the plugin manager cannot unload the plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||