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

public 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

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

getPropertyValue

public 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

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

getType

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


Copyright © 2004-2008 Codehaus. All Rights Reserved.