org.apache.geronimo.kernel.config
Class EditableKernelConfigurationManager

java.lang.Object
  extended by org.apache.geronimo.kernel.config.SimpleConfigurationManager
      extended by org.apache.geronimo.kernel.config.KernelConfigurationManager
          extended by org.apache.geronimo.kernel.config.EditableKernelConfigurationManager
All Implemented Interfaces:
GBeanLifecycle, ConfigurationManager, EditableConfigurationManager

public class EditableKernelConfigurationManager
extends KernelConfigurationManager
implements EditableConfigurationManager

Standard implementation of an editable ConfigurationManager.


Field Summary
static String GBEAN_ATTR_DEFAULT_STORE_NAME_QUERY
           
static GBeanInfo GBEAN_INFO
           
 
Fields inherited from class org.apache.geronimo.kernel.config.KernelConfigurationManager
attributeStore, classLoader, configurationList, kernel
 
Fields inherited from class org.apache.geronimo.kernel.config.SimpleConfigurationManager
configurationModel, configurations, log, repositories, stores, watchers
 
Constructor Summary
EditableKernelConfigurationManager(Kernel kernel, AbstractNameQuery defaultStoreNameQuery, Collection stores, ManageableAttributeStore attributeStore, PersistentConfigurationList configurationList, ArtifactManager artifactManager, ArtifactResolver artifactResolver, Collection repositories, Collection watchers, ClassLoader classLoader)
           
 
Method Summary
 void addGBeanToConfiguration(Artifact configurationId, GBeanData gbean, boolean start)
          Adds a new GBean to an existing Configuration.
 void addGBeanToConfiguration(Artifact configurationId, String name, GBeanData gbean, boolean start)
          Adds a new GBean to an existing Configuration.
static GBeanInfo getGBeanInfo()
           
protected  List getStoreList()
           
 void removeGBeanFromConfiguration(Artifact configurationId, AbstractName gbeanName)
          Removes a GBean from a configuration.
 
Methods inherited from class org.apache.geronimo.kernel.config.KernelConfigurationManager
doFail, doStart, doStop, isOnline, load, load, loadConfiguration, migrateConfiguration, setOnline, start, stop, uninstall, unload
 
Methods inherited from class org.apache.geronimo.kernel.config.SimpleConfigurationManager
addNewConfigurationToModel, getArtifactResolver, getConfiguration, getInstalled, getLoaded, getLoadParents, getRepositories, getRunning, getStartParents, getStoreForConfiguration, getStores, isConfiguration, isInstalled, isLoaded, isRunning, listConfigurations, listConfigurations, listStores, loadConfiguration, loadConfiguration, loadConfiguration, reloadConfiguration, reloadConfiguration, reloadConfiguration, reloadConfiguration, reloadConfiguration, reloadConfiguration, removeConfigurationFromModel, restartConfiguration, restartConfiguration, sort, startConfiguration, startConfiguration, stopConfiguration, stopConfiguration, uninstallConfiguration, unloadConfiguration, unloadConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.geronimo.kernel.config.ConfigurationManager
getArtifactResolver, getConfiguration, getInstalled, getLoaded, getRepositories, getRunning, getStoreForConfiguration, getStores, isConfiguration, isInstalled, isLoaded, isOnline, isRunning, listConfigurations, listConfigurations, listStores, loadConfiguration, loadConfiguration, loadConfiguration, loadConfiguration, reloadConfiguration, reloadConfiguration, reloadConfiguration, reloadConfiguration, reloadConfiguration, reloadConfiguration, restartConfiguration, restartConfiguration, setOnline, sort, startConfiguration, startConfiguration, stopConfiguration, stopConfiguration, uninstallConfiguration, unloadConfiguration, unloadConfiguration
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO

GBEAN_ATTR_DEFAULT_STORE_NAME_QUERY

public static final String GBEAN_ATTR_DEFAULT_STORE_NAME_QUERY
See Also:
Constant Field Values
Constructor Detail

EditableKernelConfigurationManager

public EditableKernelConfigurationManager(Kernel kernel,
                                          AbstractNameQuery defaultStoreNameQuery,
                                          Collection stores,
                                          ManageableAttributeStore attributeStore,
                                          PersistentConfigurationList configurationList,
                                          ArtifactManager artifactManager,
                                          ArtifactResolver artifactResolver,
                                          Collection repositories,
                                          Collection watchers,
                                          ClassLoader classLoader)
Method Detail

getStoreList

protected List getStoreList()
Overrides:
getStoreList in class SimpleConfigurationManager

addGBeanToConfiguration

public void addGBeanToConfiguration(Artifact configurationId,
                                    GBeanData gbean,
                                    boolean start)
                             throws InvalidConfigException
Description copied from interface: EditableConfigurationManager
Adds a new GBean to an existing Configuration.

Specified by:
addGBeanToConfiguration in interface EditableConfigurationManager
Parameters:
configurationId - The configuration to add the GBean to.
gbean - The data representing the GBean to add.
start - If true, the GBean should be started as part of this call.
Throws:
InvalidConfigException

addGBeanToConfiguration

public void addGBeanToConfiguration(Artifact configurationId,
                                    String name,
                                    GBeanData gbean,
                                    boolean start)
                             throws InvalidConfigException
Description copied from interface: EditableConfigurationManager
Adds a new GBean to an existing Configuration.

Specified by:
addGBeanToConfiguration in interface EditableConfigurationManager
Parameters:
configurationId - The configuration to add the GBean to.
name - The short name for the new GBean.
gbean - The data representing the GBean to add. This must not have an abstract name set.
start - If true, the GBean should be started as part of this call.
Throws:
InvalidConfigException

removeGBeanFromConfiguration

public void removeGBeanFromConfiguration(Artifact configurationId,
                                         AbstractName gbeanName)
                                  throws GBeanNotFoundException,
                                         InvalidConfigException
Description copied from interface: EditableConfigurationManager
Removes a GBean from a configuration. Note: this may simply mark it to not be loaded in the future, as opposed to actually removing it from the data in the config store.

Specified by:
removeGBeanFromConfiguration in interface EditableConfigurationManager
Parameters:
configurationId - The configuration to remove the GBean from.
gbeanName - The ObjectName of the GBean to remove.
Throws:
GBeanNotFoundException
InvalidConfigException

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.