org.codehaus.cargo.container.spi.configuration
Class AbstractConfigurationCapability
java.lang.Object
org.codehaus.cargo.container.spi.configuration.AbstractConfigurationCapability
- All Implemented Interfaces:
- ConfigurationCapability
- Direct Known Subclasses:
- AbstractExistingLocalConfigurationCapability, AbstractRuntimeConfigurationCapability, AbstractStandaloneLocalConfigurationCapability
public abstract class AbstractConfigurationCapability
- extends 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 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultSupportsMap
protected Map defaultSupportsMap
- Default support Map.
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.
supportsProperty
public boolean supportsProperty(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 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 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-2012 Codehaus. All Rights Reserved.