org.rhq.enterprise.server.plugin.pc.content
Class PackageTypePluginManager

java.lang.Object
  extended by org.rhq.enterprise.server.plugin.pc.ServerPluginManager
      extended by org.rhq.enterprise.server.plugin.pc.content.PackageTypePluginManager

public class PackageTypePluginManager
extends ServerPluginManager

Author:
Lukas Krejci

Constructor Summary
PackageTypePluginManager(AbstractTypeServerPluginContainer pc)
           
 
Method Summary
 AbstractPackageTypeBehavior<? extends ServerPluginComponent> getBehavior(int packageTypeId)
           
 AbstractPackageTypeBehavior<? extends ServerPluginComponent> getBehavior(String packageTypeName)
           
protected  void loadPlugin(ServerPluginEnvironment env, boolean enabled)
          Informs the plugin manager that a plugin with the given environment needs to be loaded.
 
Methods inherited from class org.rhq.enterprise.server.plugin.pc.ServerPluginManager
createServerPluginComponent, disablePlugin, enablePlugin, getLog, getParentPluginContainer, getPlugin, getPluginEnvironment, getPluginEnvironments, getServerPluginComponent, getServerPluginContext, initialize, 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

PackageTypePluginManager

public PackageTypePluginManager(AbstractTypeServerPluginContainer pc)
Method Detail

loadPlugin

protected void loadPlugin(ServerPluginEnvironment env,
                          boolean enabled)
                   throws Exception
Description copied from class: ServerPluginManager
Informs the plugin manager that a plugin with the given environment needs to be loaded. Once this method returns, the plugin's components are ready to be created and used, unless enabled is false, in which case the plugin will not be initialized.

Overrides:
loadPlugin in class ServerPluginManager
Parameters:
env - the environment of the plugin to be loaded
enabled - true if the plugin should be initialized; false if the plugin's existence should be noted but it should not be initialized or started
Throws:
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.

getBehavior

public AbstractPackageTypeBehavior<? extends ServerPluginComponent> getBehavior(int packageTypeId)
                                                                         throws Exception
Throws:
Exception

getBehavior

public AbstractPackageTypeBehavior<? extends ServerPluginComponent> getBehavior(String packageTypeName)
                                                                         throws Exception
Throws:
Exception


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.