public interface ContainerFactory
Modifier and Type | Method and Description |
---|---|
Container |
createContainer(String containerId,
ContainerType containerType,
Configuration configuration)
Create a container instance instantiated using the specified configuration.
|
Class |
getContainerClass(String containerId,
ContainerType containerType) |
Map |
getContainerIds() |
boolean |
isContainerRegistered(String containerId,
ContainerType containerType) |
void |
registerContainer(String containerId,
ContainerType containerType,
Class containerClass) |
void registerContainer(String containerId, ContainerType containerType, Class containerClass)
containerId
- the id of the container to registercontainerType
- the container type to register (ContainerType.INSTALLED
,
ContainerType.EMBEDDED
or ContainerType.REMOTE
)containerClass
- the container implementation class to registerClass getContainerClass(String containerId, ContainerType containerType)
containerId
- the id of the container for which to retrieve the implementation classcontainerType
- the container's type (ContainerType.INSTALLED
,
ContainerType.EMBEDDED
or ContainerType.REMOTE
)boolean isContainerRegistered(String containerId, ContainerType containerType)
containerId
- the id of the container to checkcontainerType
- the container typeMap getContainerIds()
ContainerType
s registered
for that container, as a Set.Container createContainer(String containerId, ContainerType containerType, Configuration configuration)
containerId
- the name under which the container will be looked upcontainerType
- the container's type (local installed, local embedded, remote, etc)configuration
- the configuration to pass to the container's constructorCopyright © 2004-2013 Codehaus. All Rights Reserved.