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 1867 2009-02-12 00:52:35Z mwringe $

Constructor Summary
ConfigurationElement()
           
 
Method Summary
 void addConfiguredConfigfile(FileConfig configfileElement)
           
 void addConfiguredDeployable(DeployableElement deployableElement)
           
 void addConfiguredFile(FileConfig fileConfigElement)
           
 void addConfiguredProperty(Property property)
          Add a container property.
 Configuration createConfiguration(java.lang.String containerId, ContainerType containerType)
           
protected  java.lang.Class getConfigurationClass()
          
protected  java.util.List getDeployables()
          
protected  java.util.List getFileConfigs()
          
 java.lang.String getHome()
          
protected  java.util.List getProperties()
          
 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)

addConfiguredConfigfile

public void addConfiguredConfigfile(FileConfig configfileElement)
Parameters:
configfileElement - the nested config element to deploy

addConfiguredFile

public void addConfiguredFile(FileConfig fileConfigElement)
Parameters:
fileConfigElement - the nested file element to deploy

getFileConfigs

protected final java.util.List getFileConfigs()

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 ConfigurationType getType()

See Also:
setType(String)

getHome

public final java.lang.String getHome()

See Also:
setHome(String)

createConfiguration

public Configuration createConfiguration(java.lang.String containerId,
                                         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-2011 Codehaus. All Rights Reserved.