org.codehaus.cargo.container.resin
Class Resin2xStandaloneLocalConfiguration

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.configuration.AbstractConfiguration
          extended by org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
              extended by org.codehaus.cargo.container.spi.configuration.AbstractStandaloneLocalConfiguration
                  extended by org.codehaus.cargo.container.spi.configuration.builder.AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
                      extended by org.codehaus.cargo.container.resin.internal.AbstractResinStandaloneLocalConfiguration
                          extended by org.codehaus.cargo.container.resin.Resin2xStandaloneLocalConfiguration
All Implemented Interfaces:
Configuration, DataSourceSupport, ResourceSupport, LocalConfiguration, StandaloneLocalConfiguration, ContainerConfiguration, Loggable

public class Resin2xStandaloneLocalConfiguration
extends AbstractResinStandaloneLocalConfiguration

Resin 2.x standalone ContainerConfiguration implementation.

Version:
$Id: Resin2xStandaloneLocalConfiguration.java 1889 2009-02-13 15:37:37Z adriancole $

Field Summary
static String XML_PARENT_OF_RESOURCES
          Where elements for resources will be inserted.
 
Fields inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
RESOURCE_PATH
 
Constructor Summary
Resin2xStandaloneLocalConfiguration(String dir)
          
 
Method Summary
protected  ConfigurationBuilder createConfigurationBuilder(LocalContainer container)
          
protected  org.apache.tools.ant.types.FilterChain createResinFilterChain()
          
protected  Map getNamespaces()
          Implementations should avoid passing null, and instead pass Collections.EMPTY_MAP, if the document is DTD bound.
protected  String getXpathForResourcesParent()
          Resource entries must be stored in the xml configuration file.
protected  void prepareAdditions(Container container, org.apache.tools.ant.types.FilterChain theFilterChain)
          Allow specific version implementations to add custom preparation steps before the container is started.
 
Methods inherited from class org.codehaus.cargo.container.resin.internal.AbstractResinStandaloneLocalConfiguration
createExpandedWarTokenValue, doConfigure, getCapability, getOrCreateDataSourceConfigurationFile, getOrCreateResourceConfigurationFile, getSecurityToken, getXpathForDataSourcesParent, toString
 
Methods inherited from class org.codehaus.cargo.container.spi.configuration.builder.AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
configure, configure, configure, configureDataSources, configureResources, writeConfigurationToXpath
 
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractStandaloneLocalConfiguration
configureFiles, createFilterChain, getDestDirectoryLocation, getDestFileLocation, getFileProperties, getFilterChain, getType, setConfigFileProperty, setFileProperty, setupConfigurationDir, verify
 
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
addDataSource, addDataSourcesFromProperties, addDeployable, addResource, addResourcesFromProperties, collectUnsupportedDataSourcesAndThrowException, collectUnsupportedResourcesAndThrowException, getAntUtils, getDataSources, getDeployables, getFileHandler, getHome, getResources, getResourceUtils, parsePropertiesForPendingConfiguration, setFileHandler
 
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractConfiguration
getProperties, getPropertyValue, setProperty
 
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.container.configuration.LocalConfiguration
addDeployable, addResource, getDeployables, getFileHandler, getHome, getResources, setFileHandler
 
Methods inherited from interface org.codehaus.cargo.container.configuration.Configuration
getProperties, getPropertyValue, setProperty
 
Methods inherited from interface org.codehaus.cargo.util.log.Loggable
getLogger, setLogger
 

Field Detail

XML_PARENT_OF_RESOURCES

public static final String XML_PARENT_OF_RESOURCES
Where elements for resources will be inserted.

See Also:
Constant Field Values
Constructor Detail

Resin2xStandaloneLocalConfiguration

public Resin2xStandaloneLocalConfiguration(String dir)

See Also:
AbstractResinStandaloneLocalConfiguration.AbstractResinStandaloneLocalConfiguration(String)
Method Detail

getXpathForResourcesParent

protected String getXpathForResourcesParent()
Resource entries must be stored in the xml configuration file. Under which element do we insert the entries? example: //Engine/DefaultContext

Specified by:
getXpathForResourcesParent in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
Returns:
path the the parent element Resources should be inserted under.

getNamespaces

protected Map getNamespaces()
Implementations should avoid passing null, and instead pass Collections.EMPTY_MAP, if the document is DTD bound. Resin2x application servers currently use DTD, and therefore return and empty map;

Specified by:
getNamespaces in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
Returns:
a map of prefixes to the url namespaces used in the datasource configuration file.

createConfigurationBuilder

protected ConfigurationBuilder createConfigurationBuilder(LocalContainer container)

Specified by:
createConfigurationBuilder in class AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
Parameters:
container - Container the dataSource will be configured on.
Returns:
the object that produces xml entries for DataSource definitions.
See Also:
Resin2xConfigurationBuilder

prepareAdditions

protected void prepareAdditions(Container container,
                                org.apache.tools.ant.types.FilterChain theFilterChain)
                         throws IOException
Allow specific version implementations to add custom preparation steps before the container is started.

Specified by:
prepareAdditions in class AbstractResinStandaloneLocalConfiguration
Parameters:
container - the container to configure
theFilterChain - the filter chain used to replace Ant tokens in configuration
Throws:
IOException - in case of an error
See Also:
AbstractResinStandaloneLocalConfiguration.prepareAdditions(Container, FilterChain)

createResinFilterChain

protected org.apache.tools.ant.types.FilterChain createResinFilterChain()

Specified by:
createResinFilterChain in class AbstractResinStandaloneLocalConfiguration
Returns:
an Ant filter chain containing implementation for the filter tokens used in the Resin configuration files
See Also:
AbstractResinStandaloneLocalConfiguration.createResinFilterChain()


Copyright © 2004-2012 Codehaus. All Rights Reserved.