Class AbstractWildFlyScriptCommand
- java.lang.Object
-
- org.codehaus.cargo.container.configuration.script.AbstractScriptCommand
-
- org.codehaus.cargo.container.configuration.script.AbstractResourceScriptCommand
-
- org.codehaus.cargo.container.wildfly.internal.configuration.commands.AbstractWildFlyScriptCommand
-
- All Implemented Interfaces:
ScriptCommand
- Direct Known Subclasses:
AddModuleScriptCommand
,BatchScriptCommand
,ConfigurePortsScriptCommand
,ConnectToServerScriptCommand
,DataSourceScriptCommand
,DriverScriptCommand
,JmsQueueScriptCommand
,JmsTopicScriptCommand
,LoggingScriptCommand
,MailScriptCommand
,RunBatchScriptCommand
,ShutdownServerScriptCommand
,StartEmbedServerScriptCommand
,SystemPropertyScriptCommand
,XaDataSourceScriptCommand
,XaDriverScriptCommand
public abstract class AbstractWildFlyScriptCommand extends AbstractResourceScriptCommand
Contains common logic used by WildFly commands.
-
-
Constructor Summary
Constructors Constructor Description AbstractWildFlyScriptCommand(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 protected String
getDataSourceJndi(DataSource ds)
protected String
getResourceJndi(Resource resource)
protected String
mapResourceProperties(Map<String,String> resourceProperties)
Create WildFly CLI parameter string from properties map.-
Methods inherited from class org.codehaus.cargo.container.configuration.script.AbstractResourceScriptCommand
addConfigurationScriptProperties, findResource, getScriptRelativePath, readScript
-
Methods inherited from class org.codehaus.cargo.container.configuration.script.AbstractScriptCommand
getConfiguration, isApplicable
-
-
-
-
Constructor Detail
-
AbstractWildFlyScriptCommand
public AbstractWildFlyScriptCommand(Configuration configuration, String resourcePath)
Sets configuration containing all needed information for building configuration scripts.- Parameters:
configuration
- Container configuration.resourcePath
- Path to configuration script resources.
-
-
Method Detail
-
getResourceJndi
protected String getResourceJndi(Resource resource)
- Parameters:
resource
- Resource.- Returns:
- JNDI name corresponding to this Resource.
-
getDataSourceJndi
protected String getDataSourceJndi(DataSource ds)
- Parameters:
ds
- DataSource.- Returns:
- JNDI name corresponding to this DataSource.
-
mapResourceProperties
protected String mapResourceProperties(Map<String,String> resourceProperties)
Create WildFly CLI parameter string from properties map. WildFly CLI properties usually have format " --name=value"- Parameters:
resourceProperties
- Properties for WildFly Resource.- Returns:
- Mapped properties.
-
-