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<? extends Container> |
getContainerClass(String containerId,
ContainerType containerType) |
Map<String,Set<ContainerType>> |
getContainerIds() |
boolean |
isContainerRegistered(String containerId,
ContainerType containerType) |
void |
registerContainer(String containerId,
ContainerType containerType,
Class<? extends Container> containerClass) |
void registerContainer(String containerId, ContainerType containerType, Class<? extends Container> 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<? extends Container> 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<String,Set<ContainerType>> getContainerIds()
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–2015 Github. All rights reserved.