Package org.codehaus.cargo.ant
Class DeployableElement
- java.lang.Object
-
- org.codehaus.cargo.ant.DeployableElement
-
public class DeployableElement extends Object
Nested Ant element to wrap aDeployable
.
-
-
Constructor Summary
Constructors Constructor Description DeployableElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConfiguredProperty(Property property)
Add a deployable property.Deployable
createDeployable(String containerId)
DeployableMonitor
createDeployableMonitor()
Class
getDeployableClass()
String
getFile()
List<Property>
getProperties()
protected String
getSetterMethodName(String propertyName)
Transform a property into a method name by transforming the first letter of the property name to uppercase.DeployableType
getType()
void
setClass(Class deployableClass)
void
setFile(String file)
void
setPingTimeout(Long pingTimeout)
void
setPingUrl(URL pingURL)
void
setType(String type)
-
-
-
Method Detail
-
setFile
public void setFile(String file)
- Parameters:
file
- the deployable file to wrap
-
setPingUrl
public void setPingUrl(URL pingURL)
- Parameters:
pingURL
- the deployable ping URL
-
setPingTimeout
public void setPingTimeout(Long pingTimeout)
- Parameters:
pingTimeout
- the deployable ping timeout
-
setType
public void setType(String type)
- Parameters:
type
- the deployable type ("war", "ejb", "ear", etc)
-
setClass
public void setClass(Class deployableClass)
- Parameters:
deployableClass
- a custom deployable class to register against the specified type
-
addConfiguredProperty
public void addConfiguredProperty(Property property)
Add a deployable property.- Parameters:
property
- the deployable property to add
-
createDeployable
public Deployable createDeployable(String containerId)
- Parameters:
containerId
- the container id to which this deployable will be deployed- Returns:
- a
Deployable
representing this nested Ant element
-
createDeployableMonitor
public DeployableMonitor createDeployableMonitor()
- Returns:
- deployable monitor, if defined.
-
getSetterMethodName
protected String getSetterMethodName(String propertyName)
Transform a property into a method name by transforming the first letter of the property name to uppercase.- Parameters:
propertyName
- the property name to transform into a setter method- Returns:
- the setter method's name
-
getType
public DeployableType getType()
- Returns:
- the deployable type
-
getFile
public String getFile()
- Returns:
- the location of the deployable file to wrap
-
getDeployableClass
public Class getDeployableClass()
- Returns:
- the custom deployable implementation to use (if defined by the user)
-
-