public class BundleServerPluginManager extends ServerPluginManager
environment, including its classloader, from this object as well.| Constructor and Description |
|---|
BundleServerPluginManager(BundleServerPluginContainer pc) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
createServerPluginComponent, disablePlugin, enablePlugin, getLog, getParentPluginContainer, getPlugin, getPluginEnvironment, getPluginEnvironments, getServerPluginComponent, getServerPluginContext, instantiatePluginClass, isPluginEnabled, isPluginLoaded, loadPluginClass, rebuildServerPluginEnvironment, reloadPlugin, shutdown, startPlugin, startPlugins, stopPlugin, stopPlugins, unloadPlugin, unloadPluginpublic BundleServerPluginManager(BundleServerPluginContainer pc)
public void initialize()
throws Exception
ServerPluginManagerinitialize in class ServerPluginManagerException - if failed to initializeprotected 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 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 parseException - if the recipe could not be parsed successfullypublic BundleDistributionInfo parseRecipe(String recipe) throws Exception
recipe - the recipe to parseException - if the recipe could not be parsed successfullypublic BundleDistributionInfo processBundleDistributionFile(File distributionFile) throws Exception
distributionFile - Exception - if the bundle distribution file could not be processed successfullyCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.