org.apache.geronimo.system.configuration
Class LocalAttributeManager
java.lang.Object
org.apache.geronimo.system.configuration.LocalAttributeManager
- All Implemented Interfaces:
- org.apache.geronimo.gbean.GBeanLifecycle, org.apache.geronimo.kernel.config.ManageableAttributeStore, org.apache.geronimo.kernel.config.PersistentConfigurationList, PluginAttributeStore
public class LocalAttributeManager
- extends Object
- implements PluginAttributeStore, org.apache.geronimo.kernel.config.PersistentConfigurationList, org.apache.geronimo.gbean.GBeanLifecycle
Stores managed attributes in an XML file on the local filesystem.
Field Summary |
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
Fields inherited from interface org.apache.geronimo.kernel.config.ManageableAttributeStore |
ATTRIBUTE_STORE |
Fields inherited from interface org.apache.geronimo.kernel.config.PersistentConfigurationList |
PERSISTENT_CONFIGURATION_LIST |
Method Summary |
void |
addConfiguration(org.apache.geronimo.kernel.repository.Artifact configurationName)
|
void |
addGBean(org.apache.geronimo.kernel.repository.Artifact configurationName,
org.apache.geronimo.gbean.GBeanData gbeanData)
|
Collection |
applyOverrides(org.apache.geronimo.kernel.repository.Artifact configName,
Collection gbeanDatas,
ClassLoader classLoader)
|
void |
doFail()
|
void |
doStart()
|
void |
doStop()
|
static org.apache.geronimo.gbean.GBeanInfo |
getGBeanInfo()
|
org.apache.geronimo.kernel.repository.Artifact[] |
getListedConfigurations(org.apache.geronimo.kernel.repository.Artifact query)
|
boolean |
isKernelFullyStarted()
|
boolean |
isReadOnly()
|
void |
load()
|
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 |
restore()
|
void |
save()
|
void |
setKernelFullyStarted(boolean kernelFullyStarted)
|
void |
setModuleGBeans(org.apache.geronimo.kernel.repository.Artifact moduleName,
GBeanOverride[] gbeans)
Adds a group of settings to the attribute store. |
void |
setReferencePatterns(org.apache.geronimo.kernel.repository.Artifact configurationName,
org.apache.geronimo.gbean.AbstractName gbeanName,
org.apache.geronimo.gbean.GReferenceInfo reference,
org.apache.geronimo.gbean.ReferencePatterns patterns)
|
void |
setShouldLoad(org.apache.geronimo.kernel.repository.Artifact configurationName,
org.apache.geronimo.gbean.AbstractName gbeanName,
boolean load)
|
void |
setValue(org.apache.geronimo.kernel.repository.Artifact configurationName,
org.apache.geronimo.gbean.AbstractName gbeanName,
org.apache.geronimo.gbean.GAttributeInfo attribute,
Object value)
|
void |
startConfiguration(org.apache.geronimo.kernel.repository.Artifact configurationName)
|
void |
stopConfiguration(org.apache.geronimo.kernel.repository.Artifact configName)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
LocalAttributeManager
public LocalAttributeManager(String configFile,
boolean readOnly,
ServerInfo serverInfo)
isReadOnly
public boolean isReadOnly()
applyOverrides
public Collection applyOverrides(org.apache.geronimo.kernel.repository.Artifact configName,
Collection gbeanDatas,
ClassLoader classLoader)
throws org.apache.geronimo.kernel.config.InvalidConfigException
- Specified by:
applyOverrides
in interface org.apache.geronimo.kernel.config.ManageableAttributeStore
- Throws:
org.apache.geronimo.kernel.config.InvalidConfigException
setModuleGBeans
public void setModuleGBeans(org.apache.geronimo.kernel.repository.Artifact moduleName,
GBeanOverride[] gbeans)
- Description copied from interface:
PluginAttributeStore
- Adds a group of settings to the attribute store. This is used by e.g.
the plugin installer to add the settings needed for a new plugin.
- Specified by:
setModuleGBeans
in interface PluginAttributeStore
setValue
public void setValue(org.apache.geronimo.kernel.repository.Artifact configurationName,
org.apache.geronimo.gbean.AbstractName gbeanName,
org.apache.geronimo.gbean.GAttributeInfo attribute,
Object value)
- Specified by:
setValue
in interface org.apache.geronimo.kernel.config.ManageableAttributeStore
setReferencePatterns
public void setReferencePatterns(org.apache.geronimo.kernel.repository.Artifact configurationName,
org.apache.geronimo.gbean.AbstractName gbeanName,
org.apache.geronimo.gbean.GReferenceInfo reference,
org.apache.geronimo.gbean.ReferencePatterns patterns)
- Specified by:
setReferencePatterns
in interface org.apache.geronimo.kernel.config.ManageableAttributeStore
setShouldLoad
public void setShouldLoad(org.apache.geronimo.kernel.repository.Artifact configurationName,
org.apache.geronimo.gbean.AbstractName gbeanName,
boolean load)
- Specified by:
setShouldLoad
in interface org.apache.geronimo.kernel.config.ManageableAttributeStore
addGBean
public void addGBean(org.apache.geronimo.kernel.repository.Artifact configurationName,
org.apache.geronimo.gbean.GBeanData gbeanData)
- Specified by:
addGBean
in interface org.apache.geronimo.kernel.config.ManageableAttributeStore
load
public void load()
throws IOException
- Throws:
IOException
save
public void save()
throws IOException
- Specified by:
save
in interface org.apache.geronimo.kernel.config.ManageableAttributeStore
- Specified by:
save
in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
- Throws:
IOException
isKernelFullyStarted
public boolean isKernelFullyStarted()
- Specified by:
isKernelFullyStarted
in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
setKernelFullyStarted
public void setKernelFullyStarted(boolean kernelFullyStarted)
- Specified by:
setKernelFullyStarted
in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
restore
public List restore()
throws IOException
- Specified by:
restore
in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
- Throws:
IOException
startConfiguration
public void startConfiguration(org.apache.geronimo.kernel.repository.Artifact configurationName)
- Specified by:
startConfiguration
in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
addConfiguration
public void addConfiguration(org.apache.geronimo.kernel.repository.Artifact configurationName)
- Specified by:
addConfiguration
in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
removeConfiguration
public void removeConfiguration(org.apache.geronimo.kernel.repository.Artifact configName)
- Specified by:
removeConfiguration
in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
getListedConfigurations
public org.apache.geronimo.kernel.repository.Artifact[] getListedConfigurations(org.apache.geronimo.kernel.repository.Artifact query)
- Specified by:
getListedConfigurations
in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
stopConfiguration
public void stopConfiguration(org.apache.geronimo.kernel.repository.Artifact configName)
- Specified by:
stopConfiguration
in interface org.apache.geronimo.kernel.config.PersistentConfigurationList
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
doStart
public void doStart()
throws Exception
- Specified by:
doStart
in interface org.apache.geronimo.gbean.GBeanLifecycle
- Throws:
Exception
doStop
public void doStop()
throws Exception
- Specified by:
doStop
in interface org.apache.geronimo.gbean.GBeanLifecycle
- Throws:
Exception
doFail
public void doFail()
- Specified by:
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
getGBeanInfo
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
Copyright © 2006 Apache Software Foundation. All Rights Reserved.