Package org.apache.axis2.deployment
Class AbstractDeployer
java.lang.Object
org.apache.axis2.deployment.AbstractDeployer
- All Implemented Interfaces:
Deployer
- Direct Known Subclasses:
ModuleDeployer,POJODeployer,ServiceDeployer,TransportDeployer
AbstractDeployer class which can be extended by all Axis2 deployers
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String,DeploymentFileData> The Map<String absoluteFilePath, DeploymentFileData data> of all artifacts deployed by this deployer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddServiceBuilderExtensions(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.voidRemove a given file from the configurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.axis2.deployment.Deployer
init, setDirectory, setExtension
-
Field Details
-
deploymentFileDataMap
The Map<String absoluteFilePath, DeploymentFileData data> of all artifacts deployed by this deployer.
-
-
Constructor Details
-
AbstractDeployer
public AbstractDeployer()
-
-
Method Details
-
deploy
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
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
Description copied from interface:DeployerCleanup deployment- Specified by:
cleanupin interfaceDeployer- Throws:
DeploymentException- If an error occurs during cleanup
-
getServiceBuilderExtensions
-
addServiceBuilderExtensions
-
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
-