public class ConfigurationElement extends Object
DefaultConfigurationFactory
class.Constructor and Description |
---|
ConfigurationElement() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredConfigfile(org.codehaus.cargo.container.configuration.FileConfig configfileElement) |
void |
addConfiguredDeployable(DeployableElement deployableElement) |
void |
addConfiguredFile(org.codehaus.cargo.container.configuration.FileConfig fileConfigElement) |
void |
addConfiguredProperty(Property property)
Add a container property.
|
org.codehaus.cargo.container.configuration.Configuration |
createConfiguration(String containerId,
org.codehaus.cargo.container.ContainerType containerType) |
protected Class |
getConfigurationClass() |
protected List |
getDeployables() |
protected List |
getFileConfigs() |
String |
getHome() |
protected List |
getProperties() |
org.codehaus.cargo.container.configuration.ConfigurationType |
getType() |
void |
setClass(Class configurationClass) |
void |
setHome(String home) |
void |
setType(String typeAsString)
Defaults to the standalone configuration if type is not specified by the user.
|
public final void setClass(Class configurationClass)
configurationClass
- the configuration class to associate to the containing containerprotected final Class getConfigurationClass()
setClass(Class)
public void addConfiguredDeployable(DeployableElement deployableElement)
deployableElement
- the nested deployable element to deployprotected final List getDeployables()
public void addConfiguredConfigfile(org.codehaus.cargo.container.configuration.FileConfig configfileElement)
configfileElement
- the nested config element to deploypublic void addConfiguredFile(org.codehaus.cargo.container.configuration.FileConfig fileConfigElement)
fileConfigElement
- the nested file element to deployprotected final List getFileConfigs()
protected final List getProperties()
addConfiguredProperty(Property)
public void addConfiguredProperty(Property property)
property
- the container property to addpublic final void setType(String typeAsString)
typeAsString
- the configuration type as a stringConfigurationFactory
public final void setHome(String home)
LocalConfiguration.getHome()
public final org.codehaus.cargo.container.configuration.ConfigurationType getType()
setType(String)
public final String getHome()
setHome(String)
public org.codehaus.cargo.container.configuration.Configuration createConfiguration(String containerId, org.codehaus.cargo.container.ContainerType containerType)
containerId
- the container id associated with this configurationcontainerType
- the container type associated with this configurationCopyright © 2004-2013 Codehaus. All Rights Reserved.