public interface ConfigurationFactory
Configuration
knowing the container to which it is attached to and the
configuration type. A container is identified by both its id and its type. Indeed, it's possible
to register different configuration classes for the same container id but for a different
container type.Modifier and Type | Method and Description |
---|---|
Configuration |
createConfiguration(String containerId,
ContainerType containerType,
ConfigurationType configurationType)
Create a configuration instance matching the specified container and type.
|
Configuration |
createConfiguration(String containerId,
ContainerType containerType,
ConfigurationType configurationType,
String home)
Create a configuration instance matching the specified container and type.
|
Class |
getConfigurationClass(String containerId,
ContainerType containerType,
ConfigurationType configurationType) |
boolean |
isConfigurationRegistered(String containerId,
ContainerType containerType,
ConfigurationType configurationType) |
void |
registerConfiguration(String containerId,
ContainerType containerType,
ConfigurationType configurationType,
Class configurationClass)
Registers a configuration implementation.
|
void registerConfiguration(String containerId, ContainerType containerType, ConfigurationType configurationType, Class configurationClass)
containerId
- the container id attached to this configuration classcontainerType
- the container type attached to this configuration classconfigurationType
- the type to differentiate this configuration from others for the
specified containerconfigurationClass
- the configuration implementation class to registerClass getConfigurationClass(String containerId, ContainerType containerType, ConfigurationType configurationType)
containerId
- the container id attached to this configuration classcontainerType
- the container type attached to this configuration classconfigurationType
- the configuration's typeboolean isConfigurationRegistered(String containerId, ContainerType containerType, ConfigurationType configurationType)
containerId
- the container id attached to this configuration classcontainerType
- the container type attached to this configuration classconfigurationType
- the type to differentiate this configuration from others for the
specified containerConfiguration createConfiguration(String containerId, ContainerType containerType, ConfigurationType configurationType)
containerId
- the id of the container for which to create a configurationcontainerType
- the type of the container for which to create a configurationconfigurationType
- the type that differentiates the configuration we wish to create
from other configurations for this containerConfiguration createConfiguration(String containerId, ContainerType containerType, ConfigurationType configurationType, String home)
containerId
- the id of the container for which to create a configurationcontainerType
- the type of the container for which to create a configurationconfigurationType
- the type that differentiates the configuration we wish to create
from other configurations for this containerhome
- the configuration homeCopyright © 2004-2013 Codehaus. All Rights Reserved.