org.codehaus.cargo.container.configuration
Interface Configuration

All Superinterfaces:
org.codehaus.cargo.util.log.Loggable
All Known Subinterfaces:
ExistingLocalConfiguration, LocalConfiguration, RuntimeConfiguration, StandaloneLocalConfiguration
All Known Implementing Classes:
AbstractConfiguration, AbstractExistingLocalConfiguration, AbstractLocalConfiguration, AbstractRuntimeConfiguration, AbstractStandaloneLocalConfiguration

public interface Configuration
extends org.codehaus.cargo.util.log.Loggable

A configuration represents how a container is configured: where deployables are deployed, container ports, logging levels, container authentication, etc. Cargo supports several types of configuration:

Version:
$Id: Configuration.java 886 2006-02-28 12:40:47Z vmassol $

Method Summary
 ConfigurationCapability getCapability()
           
 java.util.Map getProperties()
           
 java.lang.String getPropertyValue(java.lang.String name)
           
 ConfigurationType getType()
           
 void setProperty(java.lang.String name, java.lang.String value)
          A property is a configuration value for the container (eg the web port, the number of executing threads, etc).
 
Methods inherited from interface org.codehaus.cargo.util.log.Loggable
getLogger, setLogger
 

Method Detail

setProperty

void setProperty(java.lang.String name,
                 java.lang.String value)
A property is a configuration value for the container (eg the web port, the number of executing threads, etc).

Parameters:
name - the property name
value - the property value

getProperties

java.util.Map getProperties()
Returns:
the list of properties set
See Also:
setProperty(String, String)

getPropertyValue

java.lang.String getPropertyValue(java.lang.String name)
Parameters:
name - the property name for which to return the value
Returns:
the property's value
See Also:
setProperty(String, String)

getCapability

ConfigurationCapability getCapability()
Returns:
the ConfigurationCapability of the configuration in term of properties it supports, etc

getType

ConfigurationType getType()
Returns:
the configuration type (standalone, existing, runtime, etc)


Copyright © 2004-2010 Codehaus. All Rights Reserved.