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