Class AbstractResourceScriptCommand
- java.lang.Object
-
- org.codehaus.cargo.container.configuration.script.AbstractScriptCommand
-
- org.codehaus.cargo.container.configuration.script.AbstractResourceScriptCommand
-
- All Implemented Interfaces:
ScriptCommand
- Direct Known Subclasses:
AbstractWildFlyScriptCommand
,AddSharedLibraryToDeployableScriptCommand
,AddUserToGroupScriptCommand
,AddUserToGroupScriptCommand
,CreateDomainScriptCommand
,CreateGroupScriptCommand
,CreateGroupScriptCommand
,CreateUserScriptCommand
,CreateUserScriptCommand
,DataSourceConnectionPropertyScriptCommand
,DataSourceConnectionPropertyScriptCommand
,DataSourceScriptCommand
,DataSourceScriptCommand
,DeployDeployableOnlineScriptCommand
,DeployDeployableScriptCommand
,DeployDeployableScriptCommand
,DeploySharedLibraryScriptCommand
,ImportWsadminlibScriptCommand
,JmsConnectionFactoryScriptCommand
,JmsConnectionFactoryScriptCommand
,JmsModuleScriptCommand
,JmsQueueScriptCommand
,JmsQueueScriptCommand
,JmsServerScriptCommand
,JmsSiBusMemberScriptCommand
,JmsSiBusScriptCommand
,JmsSubdeploymentScriptCommand
,JtaScriptCommand
,LoggingScriptCommand
,LoggingScriptCommand
,MailSessionScriptCommand
,MiscConfigurationScriptCommand
,PasswordValidatorScriptCommand
,ReadDomainOfflineScriptCommand
,ReadDomainOnlineScriptCommand
,SaveSyncScriptCommand
,SetGlobalSecurityPropertyScriptCommand
,SetJvmPropertyScriptCommand
,SetSessionManagementPropertyScriptCommand
,SetSystemPropertyScriptCommand
,ShutdownDomainScriptCommand
,SslScriptCommand
,StartDeployableScriptCommand
,StopDeployableScriptCommand
,UndeployDeployableOnlineScriptCommand
,UndeployDeployableScriptCommand
,UndeployDeployableScriptCommand
,UpdateDomainOfflineScriptCommand
,UpdateDomainOnlineScriptCommand
,WriteDomainScriptCommand
public abstract class AbstractResourceScriptCommand extends AbstractScriptCommand
Implementation of general functionality for configuration script commands.
-
-
Constructor Summary
Constructors Constructor Description AbstractResourceScriptCommand(Configuration configuration, String resourcePath)
Sets configuration containing all needed information for building configuration scripts.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addConfigurationScriptProperties(Map<String,String> propertiesMap)
Add custom properties needed for configuration script filtering.protected Resource
findResource(String type)
protected abstract String
getScriptRelativePath()
String
readScript()
-
Methods inherited from class org.codehaus.cargo.container.configuration.script.AbstractScriptCommand
getConfiguration, isApplicable
-
-
-
-
Constructor Detail
-
AbstractResourceScriptCommand
public AbstractResourceScriptCommand(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
-
readScript
public String readScript()
- Returns:
- Filtered script.
-
getScriptRelativePath
protected abstract String getScriptRelativePath()
- Returns:
- Relative path to resource being read.
-
addConfigurationScriptProperties
protected void addConfigurationScriptProperties(Map<String,String> propertiesMap)
Add custom properties needed for configuration script filtering.- Parameters:
propertiesMap
- Map of additional custom properties.
-
-