Class Resin3xStandaloneLocalConfiguration
- java.lang.Object
-
- org.codehaus.cargo.util.log.LoggedObject
-
- org.codehaus.cargo.container.spi.configuration.AbstractConfiguration
-
- org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
-
- org.codehaus.cargo.container.spi.configuration.AbstractStandaloneLocalConfiguration
-
- org.codehaus.cargo.container.spi.configuration.builder.AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
-
- org.codehaus.cargo.container.resin.internal.AbstractResinStandaloneLocalConfiguration
-
- org.codehaus.cargo.container.resin.Resin3xStandaloneLocalConfiguration
-
- All Implemented Interfaces:
Configuration
,DataSourceSupport
,ResourceSupport
,LocalConfiguration
,StandaloneLocalConfiguration
,ContainerConfiguration
,Loggable
- Direct Known Subclasses:
Resin31xStandaloneLocalConfiguration
public class Resin3xStandaloneLocalConfiguration extends AbstractResinStandaloneLocalConfiguration
Resin 3.x standaloneContainerConfiguration
implementation.
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description Resin3xStandaloneLocalConfiguration(String dir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConfigurationBuilder
createConfigurationBuilder(LocalContainer container)
ConfigurationCapability
getCapability()
protected Map<String,String>
getNamespaces()
Implementations should avoid passing null, and instead passCollections.EMPTY_MAP
, if the document is DTD bound.protected String
getResinLoggingLevel(String cargoLoggingLevel)
protected String
getXpathForResourcesParent()
This expression evaluates to: "//resin:resin" Resource entries must be stored in the xml configuration file.protected void
prepareConfigurationDirectory(Container container, String confDir)
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, getOrCreateDataSourceConfigurationFile, getOrCreateResourceConfigurationFile, getResinConfigurationFileName, 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
addXmlReplacement, addXmlReplacement, addXmlReplacement, addXmlReplacement, configureFiles, getType, getXmlReplacements, performXmlReplacements, removeXmlReplacement, removeXmlReplacement, replaceInFile, setupConfigurationDir, verify
-
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
addDataSource, addDataSourcesFromProperties, addDeployable, addResource, addResourcesFromProperties, addUser, addUsersFromProperties, applyPortOffset, applyPortOffset, collectUnsupportedDataSourcesAndThrowException, collectUnsupportedResourcesAndThrowException, flagOffsetApplied, getDataSources, getDeployables, getDestDirectoryLocation, getDestFileLocation, getFileHandler, getFileProperties, getHome, getPropertyValue, getReplacements, getResources, getResourceUtils, getUsers, isOffsetApplied, isOffsetApplied, parsePropertiesForPendingConfiguration, revertPortOffset, revertPortOffset, setConfigFileProperty, setFileHandler, setFileProperty, setLogger
-
Methods inherited from class org.codehaus.cargo.container.spi.configuration.AbstractConfiguration
getProperties, setProperty
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger
-
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.Configuration
getProperties, getPropertyValue, setProperty
-
Methods inherited from interface org.codehaus.cargo.container.configuration.LocalConfiguration
addDataSource, addDeployable, addResource, addUser, applyPortOffset, getDataSources, getDeployables, getFileHandler, getFileProperties, getHome, getResources, getUsers, isOffsetApplied, revertPortOffset, setConfigFileProperty, setFileHandler, setFileProperty
-
-
-
-
Field Detail
-
XML_PARENT_OF_RESOURCES
public static final String XML_PARENT_OF_RESOURCES
Where elements for resources will be inserted. This expression evaluates to: "//resin:resin"- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Resin3xStandaloneLocalConfiguration
public Resin3xStandaloneLocalConfiguration(String dir)
-
-
Method Detail
-
getCapability
public ConfigurationCapability getCapability()
- Returns:
- the
ConfigurationCapability
of the configuration in term of properties it supports, etc
-
createConfigurationBuilder
protected ConfigurationBuilder createConfigurationBuilder(LocalContainer container)
- Specified by:
createConfigurationBuilder
in classAbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
- Parameters:
container
- Container the dataSource will be configured on.- Returns:
- the object that produces xml entries for DataSource definitions.
-
getXpathForResourcesParent
protected String getXpathForResourcesParent()
This expression evaluates to: "//resin:resin" 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 classAbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
- Returns:
- path the the parent element Resources should be inserted under.
-
getNamespaces
protected Map<String,String> getNamespaces()
Implementations should avoid passing null, and instead passCollections.EMPTY_MAP
, if the document is DTD bound.- Specified by:
getNamespaces
in classAbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
- Returns:
- a map of prefixes to the url namespaces used in the datasource configuration file.
-
getResinLoggingLevel
protected String getResinLoggingLevel(String cargoLoggingLevel)
- Parameters:
cargoLoggingLevel
- the cargo logging level (ie "low", "medium" or "high")- Returns:
- the Resin logging level corresponding to the cargo logging level
-
prepareConfigurationDirectory
protected void prepareConfigurationDirectory(Container container, String confDir) throws IOException
Allow specific version implementations to add custom preparation steps before the container is started.- Specified by:
prepareConfigurationDirectory
in classAbstractResinStandaloneLocalConfiguration
- Parameters:
container
- the container to configureconfDir
- Resinconf
directory- Throws:
IOException
- in case of an error
-
-