org.codehaus.cargo.container.spi.configuration
Class AbstractConfigurationCapability

java.lang.Object
  extended by org.codehaus.cargo.container.spi.configuration.AbstractConfigurationCapability
All Implemented Interfaces:
ConfigurationCapability
Direct Known Subclasses:
AbstractExistingLocalConfigurationCapability, AbstractRuntimeConfigurationCapability, AbstractStandaloneLocalConfigurationCapability

public abstract class AbstractConfigurationCapability
extends java.lang.Object
implements ConfigurationCapability

Base implementation of ConfigurationCapability that needs to be extended by the different configuration implementations.

Version:
$Id: AbstractConfigurationCapability.java 1705 2008-09-02 13:14:55Z adriana $

Field Summary
protected  java.util.Map defaultSupportsMap
          Default support Map.
 
Constructor Summary
AbstractConfigurationCapability()
          Initialize the default supports Map.
 
Method Summary
 java.util.Map getProperties()
          
protected abstract  java.util.Map getPropertySupportMap()
           
 boolean supportsProperty(java.lang.String propertyName)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultSupportsMap

protected java.util.Map defaultSupportsMap
Default support Map.

Constructor Detail

AbstractConfigurationCapability

public AbstractConfigurationCapability()
Initialize the default supports Map. This is so that extending classes will have less work to do and they can simply specify what's different from the default.

Method Detail

supportsProperty

public boolean supportsProperty(java.lang.String propertyName)

Specified by:
supportsProperty in interface ConfigurationCapability
Parameters:
propertyName - the property for which to verify the support for this configuration
Returns:
true if the configuration supports the passed property
See Also:
ConfigurationCapability.supportsProperty(String)

getProperties

public java.util.Map getProperties()

Specified by:
getProperties in interface ConfigurationCapability
Returns:
the list of supported or not suported configuration properties
See Also:
ConfigurationCapability.getProperties()

getPropertySupportMap

protected abstract java.util.Map getPropertySupportMap()
Returns:
a map indexed on the configuration property and having Boolean values expressing whether the configuration supports the said property or not


Copyright © 2004-2011 Codehaus. All Rights Reserved.