org.codehaus.cargo.ant
Class DeployableElement
java.lang.Object
org.codehaus.cargo.ant.DeployableElement
public class DeployableElement
- extends java.lang.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(java.lang.String file)
- Parameters:
file
- the deployable file to wrap
setType
public void setType(java.lang.String type)
- Parameters:
type
- the deployable type ("war", "ejb", "ear", etc)
setClass
public void setClass(java.lang.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 org.codehaus.cargo.container.deployable.Deployable createDeployable(java.lang.String containerId)
- Parameters:
containerId
- the container id to which this deployable will be deployed
- Returns:
- a
Deployable
representing this nested Ant element
getSetterMethodName
protected java.lang.String getSetterMethodName(java.lang.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 org.codehaus.cargo.container.deployable.DeployableType getType()
- Returns:
- the deployable type
getFile
public java.lang.String getFile()
- Returns:
- the location of the deployable file to wrap
getDeployableClass
public java.lang.Class getDeployableClass()
- Returns:
- the custom deployable implementation to use (if defined by the user)
getProperties
public final java.util.List getProperties()
-
- See Also:
addConfiguredProperty(Property)
Copyright © 2004-2009 Codehaus. All Rights Reserved.