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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigurationCapability
createConfigurationCapability(String containerId, ContainerType containerType, ConfigurationType configurationType)
Create aConfigurationCapability
instance for a given container.void
registerConfigurationCapability(String containerId, ContainerType containerType, ConfigurationType configurationType, Class<? extends ConfigurationCapability> configurationCapabilityClass)
-
-
-
Method Detail
-
registerConfigurationCapability
void registerConfigurationCapability(String containerId, ContainerType containerType, ConfigurationType configurationType, Class<? extends ConfigurationCapability> 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 aConfigurationCapability
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
-
-