Package org.apache.axis2.deployment
Class AbstractDeployer
- java.lang.Object
-
- org.apache.axis2.deployment.AbstractDeployer
-
- All Implemented Interfaces:
Deployer
- Direct Known Subclasses:
JAXWSDeployer,ModuleDeployer,POJODeployer,ServiceDeployer,TransportDeployer
public abstract class AbstractDeployer extends Object implements Deployer
AbstractDeployer class which can be extended by all Axis2 deployers
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,DeploymentFileData>deploymentFileDataMapThe Mapof all artifacts deployed by this deployer.
-
Constructor Summary
Constructors Constructor Description AbstractDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddServiceBuilderExtensions(ServiceBuilderExtension serviceBuilderExtension)voidcleanup()Cleanup deploymentvoiddeploy(DeploymentFileData deploymentFileData)Process a file and add it to the configurationprotected Map<String,AxisService>executeServiceBuilderExtensions(DeploymentFileData deploymentFileData, ConfigurationContext configurationContext)This method executes ServiceBuilderExtensions associated with this Deployer instance and return a list AxisService instances.List<ServiceBuilderExtension>getServiceBuilderExtensions()voidundeploy(String fileName)Remove a given file from the configuration-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.axis2.deployment.Deployer
init, setDirectory, setExtension
-
-
-
-
Field Detail
-
deploymentFileDataMap
protected Map<String,DeploymentFileData> deploymentFileDataMap
The Mapof all artifacts deployed by this deployer.
-
-
Method Detail
-
deploy
public void deploy(DeploymentFileData deploymentFileData) throws DeploymentException
Description copied from interface:DeployerProcess a file and add it to the configuration- Specified by:
deployin interfaceDeployer- Parameters:
deploymentFileData- the DeploymentFileData object to deploy- Throws:
DeploymentException- if there is a problem
-
undeploy
public void undeploy(String fileName) throws DeploymentException
Description copied from interface:DeployerRemove a given file from the configuration- Specified by:
undeployin interfaceDeployer- Parameters:
fileName- name of item to remove- Throws:
DeploymentException- if there is a problem
-
cleanup
public void cleanup() throws DeploymentExceptionDescription copied from interface:DeployerCleanup deployment- Specified by:
cleanupin interfaceDeployer- Throws:
DeploymentException- If an error occurs during cleanup
-
getServiceBuilderExtensions
public List<ServiceBuilderExtension> getServiceBuilderExtensions()
-
addServiceBuilderExtensions
public void addServiceBuilderExtensions(ServiceBuilderExtension serviceBuilderExtension)
-
executeServiceBuilderExtensions
protected Map<String,AxisService> executeServiceBuilderExtensions(DeploymentFileData deploymentFileData, ConfigurationContext configurationContext) throws DeploymentException
This method executes ServiceBuilderExtensions associated with this Deployer instance and return a list AxisService instances. It is required to explicitly call this method within the deploy() method in order to use ServiceBuilderExtension.- Parameters:
deploymentFileData-configurationContext-- Returns:
- Throws:
DeploymentException
-
-