|
||||||||||
| 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.bundle.BundleServerPluginManager
public class BundleServerPluginManager
This loads in all bundle server plugins that can be found. You can obtain a loaded plugin's
environment, including its classloader, from this object as well.
| Constructor Summary | |
|---|---|
BundleServerPluginManager(BundleServerPluginContainer pc)
|
|
| Method Summary | |
|---|---|
void |
initialize()
Initializes the plugin manager to prepare it to start loading plugins. |
protected void |
loadPlugin(ServerPluginEnvironment env,
boolean enabled)
Informs the plugin manager that a plugin with the given environment needs to be loaded. |
BundleDistributionInfo |
parseRecipe(String recipe)
Given just a recipe, this will attempt to parse the given recipe by asking all the bundle plugins to see if any can parse it successfully. |
RecipeParseResults |
parseRecipe(String bundleTypeName,
String recipe)
Given the name of a bundle type, this will parse the given recipe by asking the
bundle plugin that can parse a recipe of that bundle type. |
BundleDistributionInfo |
processBundleDistributionFile(File distributionFile)
Given an bundle distribution file, this will find the appropriate server side plugin that can process it and will ask that plugin to crack open the bundle distribution file and return information about it. |
| 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, shutdown, startPlugin, startPlugins, stopPlugin, stopPlugins, unloadPlugin, unloadPlugin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BundleServerPluginManager(BundleServerPluginContainer pc)
| Method Detail |
|---|
public void initialize()
throws Exception
ServerPluginManager
initialize in class ServerPluginManagerException - if failed to initialize
protected 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.
public RecipeParseResults parseRecipe(String bundleTypeName,
String recipe)
throws Exception
name of a bundle type, this will parse the given recipe by asking the
bundle plugin that can parse a recipe of that bundle type.
bundleTypeName - essentially identifies the kind of recipe that is to be parsedrecipe - the recipe to parse
Exception - if the recipe could not be parsed successfully
public BundleDistributionInfo parseRecipe(String recipe)
throws Exception
recipe - the recipe to parse
Exception - if the recipe could not be parsed successfully
public BundleDistributionInfo processBundleDistributionFile(File distributionFile)
throws Exception
distributionFile -
Exception - if the bundle distribution file could not be processed successfully
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||