We're updating the issue view to help you get more done. 

ConfigurationFactory and ConfigurationCapabilityFactory APIs should take a ContainerType as parameter

Description

We need to allow the possibility to register a given configuration/configuration capability only for a given container. A container is uniquely identified by 2 parameters: id and type.

Right now the APIs only takes the container id, which means that all current implementations must support all container types which is not right.

Here's what the new API will look like:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 public interface ConfigurationFactory { void registerConfiguration(String containerId, ContainerType containerType, ConfigurationType configurationType, Class configurationClass); Class getConfigurationClass(String containerId, ContainerType containerType, ConfigurationType configurationType); boolean isConfigurationRegistered(String containerId, ContainerType containerType, ConfigurationType configurationType); Configuration createConfiguration(String containerId, ContainerType containerType, ConfigurationType configurationType); Configuration createConfiguration(String containerId, ContainerType containerType, ConfigurationType configurationType, String home); }

And

1 2 3 4 5 6 7 8 public interface ConfigurationCapabilityFactory { void registerConfigurationCapability(String containerId, ContainerType containerType, ConfigurationType configurationType, Class configurationCapabilityClass); ConfigurationCapability createConfigurationCapability(String containerId, ContainerType containerType, ConfigurationType configurationType); }

Status

Assignee

Vincent Massol

Reporter

Vincent Massol

Components

Fix versions

Affects versions

0.8

Priority

Major