org.codehaus.cargo.generic.configuration
Interface ConfigurationCapabilityFactory
- All Known Implementing Classes:
- DefaultConfigurationCapabilityFactory
public interface ConfigurationCapabilityFactory
Allow finding a Configuration's capability for a given container identified by its id and its
type. Indeed, configurations for a given container id may have different capabilities.
- Version:
- $Id: ConfigurationCapabilityFactory.java 1705 2008-09-02 13:14:55Z adriana $
registerConfigurationCapability
void registerConfigurationCapability(String containerId,
ContainerType containerType,
ConfigurationType configurationType,
Class configurationCapabilityClass)
- Parameters:
containerId
- the id of the container to register againstcontainerType
- the type of the container to register againstconfigurationType
- the configuration type under which the capability should be
registeredconfigurationCapabilityClass
- the configuration capability implementation class to
register
createConfigurationCapability
ConfigurationCapability createConfigurationCapability(String containerId,
ContainerType containerType,
ConfigurationType configurationType)
- Create a
ConfigurationCapability
instance
for a given container.
- Parameters:
containerId
- the container id associated with the configuration capabilitycontainerType
- the container type associated with the configuration capabilityconfigurationType
- the configuration type associated with the capability
- Returns:
- the configuration capability instance matching the parameter passed
Copyright © 2004-2012 Codehaus. All Rights Reserved.