org.apache.geronimo.system.configuration
Class RepositoryConfigurationStore
java.lang.Object
org.apache.geronimo.system.configuration.RepositoryConfigurationStore
- All Implemented Interfaces:
- ConfigurationStore
public class RepositoryConfigurationStore
- extends Object
- implements ConfigurationStore
Implementation of ConfigurationStore GBean that installs/loads Configurations from a
repository.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
repository
protected final WritableListableRepository repository
GBEAN_INFO
public static final GBeanInfo GBEAN_INFO
RepositoryConfigurationStore
public RepositoryConfigurationStore(WritableListableRepository repository)
RepositoryConfigurationStore
public RepositoryConfigurationStore(Kernel kernel,
String objectName,
AbstractName abstractName,
WritableListableRepository repository)
getObjectName
public String getObjectName()
- Specified by:
getObjectName in interface ConfigurationStore
getAbstractName
public AbstractName getAbstractName()
- Specified by:
getAbstractName in interface ConfigurationStore
loadConfiguration
public ConfigurationData loadConfiguration(Artifact configId)
throws NoSuchConfigException,
IOException,
InvalidConfigException
- Specified by:
loadConfiguration in interface ConfigurationStore
- Throws:
NoSuchConfigException
IOException
InvalidConfigException
containsConfiguration
public boolean containsConfiguration(Artifact configId)
- Specified by:
containsConfiguration in interface ConfigurationStore
createNewConfigurationDir
public File createNewConfigurationDir(Artifact configId)
throws ConfigurationAlreadyExistsException
- Specified by:
createNewConfigurationDir in interface ConfigurationStore
- Throws:
ConfigurationAlreadyExistsException
resolve
public Set<URL> resolve(Artifact configId,
String moduleName,
String path)
throws NoSuchConfigException,
MalformedURLException
- Specified by:
resolve in interface ConfigurationStore
- Throws:
NoSuchConfigException
MalformedURLException
exportConfiguration
public void exportConfiguration(Artifact configId,
OutputStream output)
throws IOException,
NoSuchConfigException
- Specified by:
exportConfiguration in interface ConfigurationStore
- Throws:
IOException
NoSuchConfigException
isInPlaceConfiguration
public boolean isInPlaceConfiguration(Artifact configId)
throws NoSuchConfigException,
IOException
- Specified by:
isInPlaceConfiguration in interface ConfigurationStore
- Throws:
NoSuchConfigException
IOException
install
public void install(ConfigurationData configurationData)
throws IOException,
InvalidConfigException
- Specified by:
install in interface ConfigurationStore
- Throws:
IOException
InvalidConfigException
uninstall
public void uninstall(Artifact configId)
throws NoSuchConfigException,
IOException
- Specified by:
uninstall in interface ConfigurationStore
- Throws:
NoSuchConfigException
IOException
listConfigurations
public List<ConfigurationInfo> listConfigurations()
- Specified by:
listConfigurations in interface ConfigurationStore
getGBeanInfo
public static GBeanInfo getGBeanInfo()
Copyright © 2003-2011 The Apache Geronimo development community. All Rights Reserved.