org.codehaus.cargo.ant
Class DeployableElement
java.lang.Object
org.codehaus.cargo.ant.DeployableElement
public class DeployableElement
- extends Object
Nested Ant element to wrap a Deployable
.
- Version:
- $Id: DeployableElement.java 1160 2006-07-30 20:15:34Z vmassol $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeployableElement
public DeployableElement()
setFile
public void setFile(String file)
- Parameters:
file
- the deployable file to wrap
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
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)
getProperties
public final List getProperties()
-
- See Also:
addConfiguredProperty(Property)
Copyright © 2004-2012 Codehaus. All Rights Reserved.