Class CustomWildFlyScriptCommand
- java.lang.Object
-
- org.codehaus.cargo.container.configuration.script.AbstractScriptCommand
-
- org.codehaus.cargo.container.wildfly.internal.configuration.commands.wildfly9.custom.CustomWildFlyScriptCommand
-
- All Implemented Interfaces:
ScriptCommand
public class CustomWildFlyScriptCommand extends AbstractScriptCommand
Implementation of custom configuration script command.
-
-
Constructor Summary
Constructors Constructor Description CustomWildFlyScriptCommand(Configuration configuration, String resourcePath)
Sets configuration containing all needed information for building configuration scripts.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isApplicable()
Method used for checking if script command can be applied - if it has all needed parameters set.String
readScript()
-
Methods inherited from class org.codehaus.cargo.container.configuration.script.AbstractScriptCommand
getConfiguration
-
-
-
-
Constructor Detail
-
CustomWildFlyScriptCommand
public CustomWildFlyScriptCommand(Configuration configuration, String resourcePath)
Sets configuration containing all needed information for building configuration scripts.- Parameters:
configuration
- Container configuration.resourcePath
- Path to configuration script resource.
-
-
Method Detail
-
readScript
public String readScript()
- Returns:
- Filtered script representing this command.
-
isApplicable
public boolean isApplicable()
Method used for checking if script command can be applied - if it has all needed parameters set.- Specified by:
isApplicable
in interfaceScriptCommand
- Overrides:
isApplicable
in classAbstractScriptCommand
- Returns:
- True if script command can be applied with existing parameters.
-
-