org.codehaus.cargo.ant
Class DeployableElement

java.lang.Object
  extended byorg.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 $

Constructor Summary
DeployableElement()
           
 
Method Summary
 void addConfiguredProperty(Property property)
          Add a deployable property.
 org.codehaus.cargo.container.deployable.Deployable createDeployable(java.lang.String containerId)
           
 java.lang.Class getDeployableClass()
           
 java.lang.String getFile()
           
 java.util.List getProperties()
          {@inheritDoc}
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.
 org.codehaus.cargo.container.deployable.DeployableType getType()
           
 void setClass(java.lang.Class deployableClass)
           
 void setFile(java.lang.String file)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeployableElement

public DeployableElement()
Method Detail

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()
{@inheritDoc}

See Also:
addConfiguredProperty(Property)


Copyright © 2004-2007 Codehaus. All Rights Reserved.