Interface StandaloneLocalConfiguration
-
- All Superinterfaces:
Configuration
,LocalConfiguration
,Loggable
- All Known Implementing Classes:
AbstractCatalinaStandaloneLocalConfiguration
,AbstractGeronimoStandaloneLocalConfiguration
,AbstractGlassFishStandaloneLocalConfiguration
,AbstractJBoss5xStandaloneLocalConfiguration
,AbstractJettyEmbeddedStandaloneLocalConfiguration
,AbstractJettyStandaloneLocalConfiguration
,AbstractJonasStandaloneLocalConfiguration
,AbstractOrionStandaloneLocalConfiguration
,AbstractResinStandaloneLocalConfiguration
,AbstractStandaloneLocalConfiguration
,AbstractStandaloneLocalConfigurationWithXMLConfigurationBuilder
,AbstractWebLogicWlstStandaloneLocalConfiguration
,AbstractWildFlyStandaloneLocalConfiguration
,Geronimo1xStandaloneLocalConfiguration
,Geronimo2xStandaloneLocalConfiguration
,Geronimo3xStandaloneLocalConfiguration
,GlassFish2xStandaloneLocalConfiguration
,GlassFish3xStandaloneLocalConfiguration
,GlassFish4xStandaloneLocalConfiguration
,GlassFish5xStandaloneLocalConfiguration
,GlassFish6xStandaloneLocalConfiguration
,GlassFish7xStandaloneLocalConfiguration
,GlassFish8xStandaloneLocalConfiguration
,JBoss3x4xStandaloneLocalConfiguration
,JBoss42xStandaloneLocalConfiguration
,JBoss51xStandaloneLocalConfiguration
,JBoss5xStandaloneLocalConfiguration
,JBoss6xStandaloneLocalConfiguration
,JBoss71xStandaloneLocalConfiguration
,JBoss72xStandaloneLocalConfiguration
,JBoss73xStandaloneLocalConfiguration
,JBoss75xStandaloneLocalConfiguration
,JBoss7xStandaloneLocalConfiguration
,Jetty10xEmbeddedStandaloneLocalConfiguration
,Jetty10xStandaloneLocalConfiguration
,Jetty11xEmbeddedStandaloneLocalConfiguration
,Jetty11xStandaloneLocalConfiguration
,Jetty12xStandaloneLocalConfiguration
,Jetty5xEmbeddedStandaloneLocalConfiguration
,Jetty6xEmbeddedStandaloneLocalConfiguration
,Jetty6xStandaloneLocalConfiguration
,Jetty7xEmbeddedStandaloneLocalConfiguration
,Jetty7xStandaloneLocalConfiguration
,Jetty8xEmbeddedStandaloneLocalConfiguration
,Jetty8xStandaloneLocalConfiguration
,Jetty9xEmbeddedStandaloneLocalConfiguration
,Jetty9xStandaloneLocalConfiguration
,Jo1xStandaloneLocalConfiguration
,Jonas4xStandaloneLocalConfiguration
,Jonas5xStandaloneLocalConfiguration
,JRun4xStandaloneLocalConfiguration
,LibertyStandaloneLocalConfiguration
,Oc4j9xStandaloneLocalConfiguration
,PayaraStandaloneLocalConfiguration
,Resin31xStandaloneLocalConfiguration
,Resin3xStandaloneLocalConfiguration
,Resin4xStandaloneLocalConfiguration
,Tomcat10xStandaloneLocalConfiguration
,Tomcat11xStandaloneLocalConfiguration
,Tomcat4xStandaloneLocalConfiguration
,Tomcat5xStandaloneLocalConfiguration
,Tomcat6xStandaloneLocalConfiguration
,Tomcat7xStandaloneLocalConfiguration
,Tomcat8xStandaloneLocalConfiguration
,Tomcat9xStandaloneLocalConfiguration
,Tomee10xStandaloneLocalConfiguration
,Tomee1xStandaloneLocalConfiguration
,Tomee7xStandaloneLocalConfiguration
,Tomee8xStandaloneLocalConfiguration
,Tomee9xStandaloneLocalConfiguration
,WebLogic103xStandaloneLocalConfiguration
,WebLogic10xStandaloneLocalConfiguration
,WebLogic121xStandaloneLocalConfiguration
,WebLogic122xStandaloneLocalConfiguration
,WebLogic12xStandaloneLocalConfiguration
,WebLogic14xStandaloneLocalConfiguration
,WebLogic8xStandaloneLocalConfiguration
,WebLogic9xStandaloneLocalConfiguration
,WebSphere85xStandaloneLocalConfiguration
,WebSphere9xStandaloneLocalConfiguration
,WildFly10xStandaloneLocalConfiguration
,WildFly11xStandaloneLocalConfiguration
,WildFly12xStandaloneLocalConfiguration
,WildFly13xStandaloneLocalConfiguration
,WildFly14xStandaloneLocalConfiguration
,WildFly15xStandaloneLocalConfiguration
,WildFly16xStandaloneLocalConfiguration
,WildFly17xStandaloneLocalConfiguration
,WildFly18xStandaloneLocalConfiguration
,WildFly19xStandaloneLocalConfiguration
,WildFly20xStandaloneLocalConfiguration
,WildFly21xStandaloneLocalConfiguration
,WildFly22xStandaloneLocalConfiguration
,WildFly23xStandaloneLocalConfiguration
,WildFly24xStandaloneLocalConfiguration
,WildFly25xStandaloneLocalConfiguration
,WildFly26xStandaloneLocalConfiguration
,WildFly27xStandaloneLocalConfiguration
,WildFly28xStandaloneLocalConfiguration
,WildFly29xStandaloneLocalConfiguration
,WildFly30xStandaloneLocalConfiguration
,WildFly31xStandaloneLocalConfiguration
,WildFly32xStandaloneLocalConfiguration
,WildFly33xStandaloneLocalConfiguration
,WildFly8xStandaloneLocalConfiguration
,WildFly9xStandaloneLocalConfiguration
,WildFlySwarmStandaloneLocalConfiguration
public interface StandaloneLocalConfiguration extends LocalConfiguration
Using a standalone configuration allows Cargo to create a valid configuration for your container in the directory of your choice. It uses default parameters and allows you to modify important ones. If you find that there are parameters that you cannot modify using a standalone configuration you should switch to anExistingLocalConfiguration
. However, doing so means that you'll need to set up the configuration yourself on your local file system.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addXmlReplacement(String filename, String xpathExpression, String configurationPropertyName)
Adds an XML replacement.void
addXmlReplacement(String filename, String xpathExpression, String attributeName, String configurationPropertyName)
Adds an XML replacement.void
addXmlReplacement(String filename, String xpathExpression, String attributeName, String configurationPropertyName, XmlReplacement.ReplacementBehavior replacementBehavior)
Adds an XML replacement.void
addXmlReplacement(XmlReplacement xmlReplacement)
Adds an XML replacement.List<XmlReplacement>
getXmlReplacements()
void
removeXmlReplacement(String filename, String xpathExpression)
Removes an XML replacement.void
removeXmlReplacement(String filename, String xpathExpression, String attributeName)
Removes an XML replacement.-
Methods inherited from interface org.codehaus.cargo.container.configuration.Configuration
getCapability, getProperties, getPropertyValue, getType, setProperty
-
Methods inherited from interface org.codehaus.cargo.container.configuration.LocalConfiguration
addDataSource, addDeployable, addResource, addUser, applyPortOffset, configure, getDataSources, getDeployables, getFileHandler, getFileProperties, getHome, getResources, getUsers, isOffsetApplied, revertPortOffset, setConfigFileProperty, setFileHandler, setFileProperty
-
-
-
-
Method Detail
-
addXmlReplacement
void addXmlReplacement(XmlReplacement xmlReplacement)
Adds an XML replacement.- Parameters:
xmlReplacement
- XML replacement to add.
-
addXmlReplacement
void addXmlReplacement(String filename, String xpathExpression, String configurationPropertyName)
Adds an XML replacement.- Parameters:
filename
- File in which to replace.xpathExpression
- XPath expression to look for.configurationPropertyName
- Name of the configuration property to set. The XML replacement will be ignored if the property is set tonull
.
-
addXmlReplacement
void addXmlReplacement(String filename, String xpathExpression, String attributeName, String configurationPropertyName)
Adds an XML replacement.- Parameters:
filename
- File in which to replace.xpathExpression
- XPath expression to look for.attributeName
- Attribute name to modify. Ifnull
, the node's contents will be modified.configurationPropertyName
- Name of the configuration property to set. The XML replacement will be ignored if the property is set tonull
.
-
addXmlReplacement
void addXmlReplacement(String filename, String xpathExpression, String attributeName, String configurationPropertyName, XmlReplacement.ReplacementBehavior replacementBehavior)
Adds an XML replacement.- Parameters:
filename
- File in which to replace.xpathExpression
- XPath expression to look for.attributeName
- Attribute name to modify. Ifnull
, the node's contents will be modified.configurationPropertyName
- Name of the configuration property to set. The XML replacement will be ignored if the property is set tonull
.replacementBehavior
- Behavior if XPath expression doesn't match anything.
-
removeXmlReplacement
void removeXmlReplacement(String filename, String xpathExpression)
Removes an XML replacement.- Parameters:
filename
- File in which to replace.xpathExpression
- XPath expression to look for.
-
removeXmlReplacement
void removeXmlReplacement(String filename, String xpathExpression, String attributeName)
Removes an XML replacement.- Parameters:
filename
- File in which to replace.xpathExpression
- XPath expression to look for.attributeName
- Attribute name to modify. Ifnull
, the node's contents will be modified.
-
getXmlReplacements
List<XmlReplacement> getXmlReplacements()
- Returns:
- All XML replacements.
-
-