|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.core.pc.plugin.PluginManager
public class PluginManager
This container service will load in all plugins that can be found and will maintain the complete set of
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 - see
getPlugin(String).
| Constructor Summary | |
|---|---|
PluginManager()
|
|
| Method Summary | |
|---|---|
String |
getAmpsVersion(String pluginName)
|
ClassLoaderManager |
getClassLoaderManager()
Returns the manager of all classloaders created for the plugin manager. |
PluginMetadataManager |
getMetadataManager()
An object that can be used to process and store all metadata from all plugins. |
PluginEnvironment |
getPlugin(String name)
Returns the PluginEnvironment for the specific plugin with the given name. |
Collection<PluginEnvironment> |
getPlugins()
Returns the PluginEnvironments for every plugin this manager found and loaded. |
void |
initialize()
Finds all plugins using the plugin finder defined in the plugin container configuration and
loads each plugin found. |
void |
setConfiguration(PluginContainerConfiguration configuration)
Informs the container service how it should be configured by providing the full plugin container configuration. |
void |
setPluginLifecycleListenerManager(PluginLifecycleListenerManager pluginLifecycleListenerManager)
|
void |
shutdown()
Stops the container service which effectively releases all runtime resources such as running threads. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginManager()
| Method Detail |
|---|
public void initialize()
plugin container configuration and
loads each plugin found.
initialize in interface ContainerServiceContainerService.initialize()public void shutdown()
ContainerService
shutdown in interface ContainerServiceContainerService.shutdown()public void setConfiguration(PluginContainerConfiguration configuration)
ContainerServicenull configuration object so implementations of
this interface should never have to worry about a null configuration parameter value.
setConfiguration in interface ContainerServiceContainerService.setConfiguration(PluginContainerConfiguration)public void setPluginLifecycleListenerManager(PluginLifecycleListenerManager pluginLifecycleListenerManager)
public Collection<PluginEnvironment> getPlugins()
PluginEnvironments for every plugin this manager found and loaded.
@Nullable public PluginEnvironment getPlugin(String name)
PluginEnvironment for the specific plugin with the given name.
The plugin's name is defined in its plugin descriptor - specifically the XML root node's "name" attribute (e.g. <plugin name="thePluginName").
name - plugin name as defined in the plugin's descriptor
null if there is no loaded plugin
with the given name)public PluginMetadataManager getMetadataManager()
public ClassLoaderManager getClassLoaderManager()
public String getAmpsVersion(String pluginName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||