Interface DeployerFactory
-
- All Known Implementing Classes:
DefaultDeployerFactory
public interface DeployerFactory
Create aDeployer
knowing the container to which it is attached and the deployer type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Deployer
createDeployer(Container container)
Create aDeployer
instance whose type matches the container's type.Deployer
createDeployer(Container container, DeployerType deployerType)
Create aDeployer
instance matching the specified container and type.Class<? extends Deployer>
getDeployerClass(String containerId, DeployerType deployerType)
boolean
isDeployerRegistered(String containerId, DeployerType deployerType)
void
registerDeployer(String containerId, DeployerType deployerType, Class<? extends Deployer> deployerClass)
Registers aDeployer
implementation.
-
-
-
Method Detail
-
registerDeployer
void registerDeployer(String containerId, DeployerType deployerType, Class<? extends Deployer> deployerClass)
Registers aDeployer
implementation.- Parameters:
containerId
- the container attached to this deployerClassdeployerType
- the deployer's type (local, remote, etc)deployerClass
- the deployer implementation class to register
-
isDeployerRegistered
boolean isDeployerRegistered(String containerId, DeployerType deployerType)
- Parameters:
containerId
- the container attached to this deployer classdeployerType
- the type to differentiate this deployer from others for the specified container- Returns:
- true if the specified deployer is already registered or false otherwise
-
getDeployerClass
Class<? extends Deployer> getDeployerClass(String containerId, DeployerType deployerType)
- Parameters:
containerId
- the container attached to this deployer classdeployerType
- the deployer's type- Returns:
- the deployer implementation class
-
createDeployer
Deployer createDeployer(Container container, DeployerType deployerType)
Create aDeployer
instance matching the specified container and type.- Parameters:
container
- the container for which we need to create a deployer instancedeployerType
- the deployer's type (local, remote, etc)- Returns:
- the deployer instance
-
createDeployer
Deployer createDeployer(Container container)
Create aDeployer
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.- Parameters:
container
- the container for which we need to create a deployer instance- Returns:
- the deployer instance
-
-