org.codehaus.cargo.ant
Class ConfigurationElement

java.lang.Object
  extended by org.codehaus.cargo.ant.ConfigurationElement

public class ConfigurationElement
extends java.lang.Object

Nested Ant element to wrap the DefaultConfigurationFactory class.

Version:
$Id: ConfigurationElement.java 1233 2006-11-22 09:15:56Z vmassol $

Constructor Summary
ConfigurationElement()
           
 
Method Summary
 void addConfiguredDeployable(DeployableElement deployableElement)
           
 void addConfiguredProperty(Property property)
          Add a container property.
 org.codehaus.cargo.container.configuration.Configuration createConfiguration(java.lang.String containerId, org.codehaus.cargo.container.ContainerType containerType)
           
protected  java.lang.Class getConfigurationClass()
          
protected  java.util.List getDeployables()
          
 java.lang.String getHome()
          
protected  java.util.List getProperties()
          
 org.codehaus.cargo.container.configuration.ConfigurationType getType()
          
 void setClass(java.lang.Class configurationClass)
           
 void setHome(java.lang.String home)
          
 void setType(java.lang.String typeAsString)
          Defaults to the standalone configuration if type is not specified by the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationElement

public ConfigurationElement()
Method Detail

setClass

public final void setClass(java.lang.Class configurationClass)
Parameters:
configurationClass - the configuration class to associate to the containing container

getConfigurationClass

protected final java.lang.Class getConfigurationClass()

See Also:
setClass(Class)

addConfiguredDeployable

public void addConfiguredDeployable(DeployableElement deployableElement)
Parameters:
deployableElement - the nested deployable element to deploy

getDeployables

protected final java.util.List getDeployables()

See Also:
addConfiguredDeployable(DeployableElement)

getProperties

protected final java.util.List getProperties()

See Also:
addConfiguredProperty(Property)

addConfiguredProperty

public void addConfiguredProperty(Property property)
Add a container property.

Parameters:
property - the container property to add

setType

public final void setType(java.lang.String typeAsString)
Defaults to the standalone configuration if type is not specified by the user.

Parameters:
typeAsString - the configuration type as a string
See Also:
ConfigurationFactory

setHome

public final void setHome(java.lang.String home)

See Also:
LocalConfiguration.getHome()

getType

public final org.codehaus.cargo.container.configuration.ConfigurationType getType()

See Also:
setType(String)

getHome

public final java.lang.String getHome()

See Also:
setHome(String)

createConfiguration

public org.codehaus.cargo.container.configuration.Configuration createConfiguration(java.lang.String containerId,
                                                                                    org.codehaus.cargo.container.ContainerType containerType)
Parameters:
containerId - the container id associated with this configuration
containerType - the container type associated with this configuration
Returns:
a configuration instance matching this container and the defined type


Copyright © 2004-2010 Codehaus. All Rights Reserved.