Class AbstractWildFlyStandaloneLocalConfiguration
- 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.wildfly.internal.AbstractWildFlyStandaloneLocalConfiguration
-
- All Implemented Interfaces:
Configuration
,LocalConfiguration
,StandaloneLocalConfiguration
,ContainerConfiguration
,WildFlyConfiguration
,Loggable
- Direct Known Subclasses:
WildFly8xStandaloneLocalConfiguration
,WildFly9xStandaloneLocalConfiguration
public abstract class AbstractWildFlyStandaloneLocalConfiguration extends AbstractStandaloneLocalConfiguration implements WildFlyConfiguration
Base class for WildFly standalone local configuration.
-
-
Field Summary
-
Fields inherited from class org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration
RESOURCE_PATH
-
-
Constructor Summary
Constructors Constructor Description AbstractWildFlyStandaloneLocalConfiguration(String dir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addModuleScript(String jarFile, InstalledLocalContainer container, List<ScriptCommand> configurationScript)
Create module from JAR file and add it to the script list.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
doConfigure(LocalContainer c)
Implementation ofLocalConfiguration.configure(LocalContainer)
that all local configuration using this class must implement.-
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
getCapability, 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
-
Methods inherited from interface org.codehaus.cargo.container.wildfly.internal.WildFlyConfiguration
getConfigurationFactory
-
-
-
-
Constructor Detail
-
AbstractWildFlyStandaloneLocalConfiguration
public AbstractWildFlyStandaloneLocalConfiguration(String dir)
-
-
Method Detail
-
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.. Ignore port offset and configure, see CARGO-1415 (cargo.port.offset
sets the port offset twice) for details.- Specified by:
configure
in interfaceLocalConfiguration
- Overrides:
configure
in classAbstractLocalConfiguration
- Parameters:
container
- the container to configure
-
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
-
addModuleScript
protected void addModuleScript(String jarFile, InstalledLocalContainer container, List<ScriptCommand> configurationScript)
Create module from JAR file and add it to the script list.- Parameters:
jarFile
- JAR resource representing module.container
- Container with modules.configurationScript
- List of configuration scripts to be executed.
-
-