Cargo

Add new ConfigurationCapabilityFactory to discover a configuration's capabilities

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.7
  • Fix Version/s: 0.8
  • Component/s: Core
  • Labels:
    None
  • Number of attachments :
    0

Description

/**
 * 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);
}

Activity

Hide
Vincent Massol added a comment -

Done

Show
Vincent Massol added a comment - Done

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: