/**
* Allow finding a Configuration's capability by container id and type.
*
* @version $Id: ContainerCapabilityFactory.java 884 2006-02-27 21:58:13Z vmassol $
*/
public interface ConfigurationCapabilityFactory
{
/**
* @param containerId the id of the container to register against
* @param type the configuration type under which the capability should be registered
* @param configurationCapabilityClass the confoiguration capability implementation class to
* register
*/
void registerConfigurationCapability(String containerId, ConfigurationType type,
Class configurationCapabilityClass);
/**
* Create a {@link org.codehaus.cargo.container.configuration.ConfigurationCapability} instance.
*
* @param containerId the container id associated with the configuration capability
* @param type the configuration type associated with the capability
* @return the configuration capability instance matching the parameter passed
*/
ConfigurationCapability createConfigurationCapability(String containerId,
ConfigurationType type);
}