public interface DeployerFactory
Deployer
knowing the container to which it is attached and the deployer type.Modifier and Type | Method and Description |
---|---|
Deployer |
createDeployer(Container container)
Create a
Deployer instance whose type matches the container's type. |
Deployer |
createDeployer(Container container,
DeployerType deployerType)
Create a
Deployer instance matching the specified container and type. |
Class |
getDeployerClass(String containerId,
DeployerType deployerType) |
boolean |
isDeployerRegistered(String containerId,
DeployerType deployerType) |
void |
registerDeployer(String containerId,
DeployerType deployerType,
Class deployerClass)
Registers a
Deployer implementation. |
void registerDeployer(String containerId, DeployerType deployerType, Class deployerClass)
Deployer
implementation.containerId
- the container attached to this deployerClassdeployerType
- the deployer's type (local, remote, etc)deployerClass
- the deployer implementation class to registerboolean isDeployerRegistered(String containerId, DeployerType deployerType)
containerId
- the container attached to this deployer classdeployerType
- the type to differentiate this deployer from others for the specified
containerClass getDeployerClass(String containerId, DeployerType deployerType)
containerId
- the container attached to this deployer classdeployerType
- the deployer's typeDeployer createDeployer(Container container, DeployerType deployerType)
Deployer
instance matching the specified container and type.container
- the container for which we need to create a deployer instancedeployerType
- the deployer's type (local, remote, etc)Deployer createDeployer(Container container)
Deployer
instance whose type matches the container's type. For example
this creates a local deployer when the container's instance passed is a local container and
a remote deployer when the container's instance passed is a remote container.container
- the container for which we need to create a deployer instanceCopyright © 2004-2013 Codehaus. All Rights Reserved.