public class ContentServerPluginManager extends ServerPluginManager
metadata found in all plugin descriptors from all loaded plugins. You can obtain a
loaded plugin's environment, including its classloader, from this object as
well.| Constructor and Description |
|---|
ContentServerPluginManager(ContentServerPluginContainer pc) |
| Modifier and Type | Method and Description |
|---|---|
ContentSourcePluginMetadataManager |
getMetadataManager()
An object that can be used to process and store all metadata from all content plugins.
|
ServerPluginEnvironment |
getPluginEnvironment(org.rhq.core.domain.content.ContentSourceType type)
Gets the plugin environment for the plugin responsible for managing the given content source type.
|
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.
|
void |
unloadPlugin(String pluginName)
Informs the plugin manager that a plugin with the given name is to be unloaded.
|
createServerPluginComponent, disablePlugin, enablePlugin, getLog, getParentPluginContainer, getPlugin, getPluginEnvironment, getPluginEnvironments, getServerPluginComponent, getServerPluginContext, instantiatePluginClass, isPluginEnabled, isPluginLoaded, loadPluginClass, rebuildServerPluginEnvironment, reloadPlugin, startPlugin, startPlugins, stopPlugin, stopPlugins, unloadPluginpublic ContentServerPluginManager(ContentServerPluginContainer pc)
public void initialize()
throws Exception
ServerPluginManagerinitialize in class ServerPluginManagerException - if failed to initializepublic void shutdown()
ServerPluginManagerunloaded.shutdown in class ServerPluginManagerpublic ServerPluginEnvironment getPluginEnvironment(org.rhq.core.domain.content.ContentSourceType type)
type - public ContentSourcePluginMetadataManager 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 startedException - 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.public void unloadPlugin(String pluginName) throws Exception
ServerPluginManagerunloadPlugin in class ServerPluginManagerpluginName - the name of the plugin to be unloadedException - if the plugin manager cannot unload the pluginCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.