org.apache.geronimo.system.configuration
Class RepositoryConfigurationStore

java.lang.Object
  extended by org.apache.geronimo.system.configuration.RepositoryConfigurationStore
All Implemented Interfaces:
org.apache.geronimo.kernel.config.ConfigurationStore

@GBean(j2eeType="ConfigurationStore")
public class RepositoryConfigurationStore
extends Object
implements org.apache.geronimo.kernel.config.ConfigurationStore

Implementation of ConfigurationStore GBean that installs/loads Configurations from a repository.

Version:
$Rev: 1391947 $ $Date: 2012-09-30 11:48:05 +0800 (Sun, 30 Sep 2012) $

Field Summary
static String GBEAN_REF_CONFIG_DATA_TRANSFORMER
           
static String GBEAN_REF_REPOSITORY
           
protected  org.apache.geronimo.kernel.repository.WritableListableRepository repository
           
 
Constructor Summary
RepositoryConfigurationStore(org.apache.geronimo.kernel.Kernel kernel, String objectName, org.apache.geronimo.gbean.AbstractName abstractName, org.apache.geronimo.kernel.repository.WritableListableRepository repository)
           
RepositoryConfigurationStore(org.apache.geronimo.kernel.Kernel kernel, String objectName, org.apache.geronimo.gbean.AbstractName abstractName, org.apache.geronimo.kernel.repository.WritableListableRepository repository, org.apache.geronimo.kernel.config.ConfigurationDataTransformer transformer)
           
RepositoryConfigurationStore(org.apache.geronimo.kernel.repository.WritableListableRepository repository)
           
 
Method Summary
 boolean containsConfiguration(org.apache.geronimo.kernel.repository.Artifact configId)
           
 File createNewConfigurationDir(org.apache.geronimo.kernel.repository.Artifact configId)
           
 void exportConfiguration(org.apache.geronimo.kernel.repository.Artifact configId, OutputStream output)
           
 org.apache.geronimo.gbean.AbstractName getAbstractName()
           
 String getObjectName()
           
 void install(org.apache.geronimo.kernel.config.ConfigurationData configurationData)
           
 boolean isInPlaceConfiguration(org.apache.geronimo.kernel.repository.Artifact configId)
           
 List<org.apache.geronimo.kernel.config.ConfigurationInfo> listConfigurations()
           
 org.apache.geronimo.kernel.config.ConfigurationData loadConfiguration(org.apache.geronimo.kernel.repository.Artifact configId)
           
 Set<URL> resolve(org.apache.geronimo.kernel.repository.Artifact configId, String moduleName, String path)
           
 void uninstall(org.apache.geronimo.kernel.repository.Artifact configId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repository

protected final org.apache.geronimo.kernel.repository.WritableListableRepository repository

GBEAN_REF_REPOSITORY

public static final String GBEAN_REF_REPOSITORY
See Also:
Constant Field Values

GBEAN_REF_CONFIG_DATA_TRANSFORMER

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

RepositoryConfigurationStore

public RepositoryConfigurationStore(org.apache.geronimo.kernel.repository.WritableListableRepository repository)

RepositoryConfigurationStore

public RepositoryConfigurationStore(org.apache.geronimo.kernel.Kernel kernel,
                                    String objectName,
                                    org.apache.geronimo.gbean.AbstractName abstractName,
                                    org.apache.geronimo.kernel.repository.WritableListableRepository repository)

RepositoryConfigurationStore

public RepositoryConfigurationStore(@ParamSpecial(type=kernel)
                                    org.apache.geronimo.kernel.Kernel kernel,
                                    @ParamSpecial(type=objectName)
                                    String objectName,
                                    @ParamSpecial(type=abstractName)
                                    org.apache.geronimo.gbean.AbstractName abstractName,
                                    @ParamReference(name="Repository",namingType="Repository")
                                    org.apache.geronimo.kernel.repository.WritableListableRepository repository,
                                    @ParamReference(name="ConfigurationDataTransformer")
                                    org.apache.geronimo.kernel.config.ConfigurationDataTransformer transformer)
Method Detail

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<URL> 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

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<org.apache.geronimo.kernel.config.ConfigurationInfo> listConfigurations()
Specified by:
listConfigurations in interface org.apache.geronimo.kernel.config.ConfigurationStore


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