Class JBoss7xStandaloneLocalConfiguration
- 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.jboss.JBoss7xStandaloneLocalConfiguration
-
- All Implemented Interfaces:
Configuration
,LocalConfiguration
,StandaloneLocalConfiguration
,ContainerConfiguration
,Loggable
- Direct Known Subclasses:
JBoss71xStandaloneLocalConfiguration
public class JBoss7xStandaloneLocalConfiguration extends AbstractStandaloneLocalConfiguration
JBoss 7.x standalone local configuration.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIGURATION
JBoss configuration used as base.-
Fields inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
RESOURCE_PATH
-
-
Constructor Summary
Constructors Constructor Description JBoss7xStandaloneLocalConfiguration(String dir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(LocalContainer container)
Setup the container which means setting up a valid directory structure, setting up configuration files and deploying static deployables.protected void
disableWelcomeRoot()
CARGO-1090: Disable the welcome root application.protected void
doConfigure(LocalContainer c)
Implementation ofLocalConfiguration.configure(LocalContainer)
that all local configuration using this class must implement.protected String
generateUserPasswordLine(User user, String realm)
Generate the user and password line for th JBoss users properties file.ConfigurationCapability
getCapability()
-
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, toString, 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
-
CONFIGURATION
public static final String CONFIGURATION
JBoss configuration used as base.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JBoss7xStandaloneLocalConfiguration
public JBoss7xStandaloneLocalConfiguration(String dir)
-
-
Method Detail
-
getCapability
public ConfigurationCapability getCapability()
- Returns:
- the
ConfigurationCapability
of the configuration in term of properties it supports, etc
-
configure
public void configure(LocalContainer container)
Setup the container which means setting up a valid directory structure, setting up configuration files and deploying static deployables.- Specified by:
configure
in interfaceLocalConfiguration
- Overrides:
configure
in classAbstractLocalConfiguration
- Parameters:
container
- the container to configure
-
disableWelcomeRoot
protected void disableWelcomeRoot()
CARGO-1090: Disable the welcome root application.
-
doConfigure
protected void doConfigure(LocalContainer c) throws Exception
Implementation ofLocalConfiguration.configure(LocalContainer)
that all local configuration using this class must implement. This provides the ability to perform generic actions before and after the container-specific implementation. Another way would be to use AOP...- Specified by:
doConfigure
in classAbstractLocalConfiguration
- Parameters:
c
- the container to configure- Throws:
Exception
- if any error is raised during the configuration
-
generateUserPasswordLine
protected String generateUserPasswordLine(User user, String realm)
Generate the user and password line for th JBoss users properties file.- Parameters:
user
- User object.realm
- Real (for example,ApplicationRealm
)- Returns:
- User and password line for th JBoss users properties file.
-
-