org.apache.geronimo.system.configuration
Class SwitchableLocalAttributeManager

java.lang.Object
  extended by org.apache.geronimo.system.configuration.LocalAttributeManager
      extended by org.apache.geronimo.system.configuration.SwitchableLocalAttributeManager
All Implemented Interfaces:
org.apache.geronimo.gbean.GBeanLifecycle, org.apache.geronimo.kernel.config.ManageableAttributeStore, org.apache.geronimo.kernel.config.PersistentConfigurationList, org.apache.geronimo.kernel.config.SwitchablePersistentConfigurationList, LocalPluginAttributeStore, PluginAttributeStore

public class SwitchableLocalAttributeManager
extends LocalAttributeManager
implements org.apache.geronimo.kernel.config.SwitchablePersistentConfigurationList

Version:
$Rev: 486815 $ $Date: 2006-12-14 06:45:10 +1100 (Thu, 14 Dec 2006) $

Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Fields inherited from interface org.apache.geronimo.kernel.config.PersistentConfigurationList
PERSISTENT_CONFIGURATION_LIST
 
Fields inherited from interface org.apache.geronimo.kernel.config.ManageableAttributeStore
ATTRIBUTE_STORE
 
Constructor Summary
SwitchableLocalAttributeManager(String configFile, String substitutionsFile, String configSubstitutionsPrefix, boolean readOnly, ServerInfo serverInfo)
           
 
Method Summary
 void addConfiguration(org.apache.geronimo.kernel.repository.Artifact configurationName)
           
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 boolean isOnline()
           
 void migrateConfiguration(org.apache.geronimo.kernel.repository.Artifact oldName, org.apache.geronimo.kernel.repository.Artifact newName, org.apache.geronimo.kernel.config.Configuration configuration)
           
 void removeConfiguration(org.apache.geronimo.kernel.repository.Artifact configName)
           
 List<org.apache.geronimo.kernel.repository.Artifact> restore()
           
 void setOnline(boolean online)
           
 void startConfiguration(org.apache.geronimo.kernel.repository.Artifact configurationName)
           
 void stopConfiguration(org.apache.geronimo.kernel.repository.Artifact configName)
           
 
Methods inherited from class org.apache.geronimo.system.configuration.LocalAttributeManager
addConfigSubstitutions, addGBean, applyOverrides, doFail, doStart, doStop, getConfigFile, getConfigSubstitutionsFile, getConfigSubstitutionsPrefix, getConfigSubstitutionsVariables, getListedConfigurations, hasGBeanAttributes, isKernelFullyStarted, isModuleInstalled, isReadOnly, load, newGBeanInfoFactory, save, setKernelFullyStarted, setModuleGBeans, setReferencePatterns, setShouldLoad, setValue, substitute
 
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.PersistentConfigurationList
getListedConfigurations, hasGBeanAttributes, isKernelFullyStarted, save, setKernelFullyStarted
 

Field Detail

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

SwitchableLocalAttributeManager

public SwitchableLocalAttributeManager(String configFile,
                                       String substitutionsFile,
                                       String configSubstitutionsPrefix,
                                       boolean readOnly,
                                       ServerInfo serverInfo)
Method Detail

restore

public List<org.apache.geronimo.kernel.repository.Artifact> restore()
                                                             throws IOException
Specified by:
restore in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
Overrides:
restore in class LocalAttributeManager
Throws:
IOException

setOnline

public void setOnline(boolean online)
Specified by:
setOnline in interface org.apache.geronimo.kernel.config.SwitchablePersistentConfigurationList

isOnline

public boolean isOnline()
Specified by:
isOnline in interface org.apache.geronimo.kernel.config.SwitchablePersistentConfigurationList

addConfiguration

public void addConfiguration(org.apache.geronimo.kernel.repository.Artifact configurationName)
Specified by:
addConfiguration in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
Overrides:
addConfiguration in class LocalAttributeManager

startConfiguration

public void startConfiguration(org.apache.geronimo.kernel.repository.Artifact configurationName)
Specified by:
startConfiguration in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
Overrides:
startConfiguration in class LocalAttributeManager

stopConfiguration

public void stopConfiguration(org.apache.geronimo.kernel.repository.Artifact configName)
Specified by:
stopConfiguration in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
Overrides:
stopConfiguration in class LocalAttributeManager

removeConfiguration

public void removeConfiguration(org.apache.geronimo.kernel.repository.Artifact configName)
Specified by:
removeConfiguration in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
Overrides:
removeConfiguration in class LocalAttributeManager

migrateConfiguration

public void migrateConfiguration(org.apache.geronimo.kernel.repository.Artifact oldName,
                                 org.apache.geronimo.kernel.repository.Artifact newName,
                                 org.apache.geronimo.kernel.config.Configuration configuration)
Specified by:
migrateConfiguration in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
Overrides:
migrateConfiguration in class LocalAttributeManager

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


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