Interface DeployerFactory
-
- All Known Implementing Classes:
DefaultDeployerFactory
public interface DeployerFactoryCreate aDeployerknowing the container to which it is attached and the deployer type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DeployercreateDeployer(Container container)Create aDeployerinstance whose type matches the container's type.DeployercreateDeployer(Container container, DeployerType deployerType)Create aDeployerinstance matching the specified container and type.Class<? extends Deployer>getDeployerClass(String containerId, DeployerType deployerType)booleanisDeployerRegistered(String containerId, DeployerType deployerType)voidregisterDeployer(String containerId, DeployerType deployerType, Class<? extends Deployer> deployerClass)Registers aDeployerimplementation.
-
-
-
Method Detail
-
registerDeployer
void registerDeployer(String containerId, DeployerType deployerType, Class<? extends Deployer> deployerClass)
Registers aDeployerimplementation.- 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 aDeployerinstance 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 aDeployerinstance 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
-
-