Class CappAxis2Deployer
- java.lang.Object
-
- org.apache.axis2.deployment.AbstractDeployer
-
- org.wso2.carbon.application.deployer.CappAxis2Deployer
-
- All Implemented Interfaces:
org.apache.axis2.deployment.Deployer
public class CappAxis2Deployer extends org.apache.axis2.deployment.AbstractDeployer
-
-
Constructor Summary
Constructors Constructor Description CappAxis2Deployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()voiddeploy(org.apache.axis2.deployment.repository.util.DeploymentFileData deploymentFileData)Axis2 deployment engine will call this method when a .car archive is deployed.voidinit(org.apache.axis2.context.ConfigurationContext configurationContext)voidsetDirectory(String s)voidsetExtension(String s)voidundeploy(String filePath)Undeploys the cApp from system when the .car file is deleted from the repository.
-
-
-
Method Detail
-
init
public void init(org.apache.axis2.context.ConfigurationContext configurationContext)
-
deploy
public void deploy(org.apache.axis2.deployment.repository.util.DeploymentFileData deploymentFileData) throws org.apache.axis2.deployment.DeploymentExceptionAxis2 deployment engine will call this method when a .car archive is deployed. So we only have to call the applicationManager to deploy it using the absolute path of the deployed .car file.- Specified by:
deployin interfaceorg.apache.axis2.deployment.Deployer- Overrides:
deployin classorg.apache.axis2.deployment.AbstractDeployer- Parameters:
deploymentFileData- - info about the deployed file- Throws:
org.apache.axis2.deployment.DeploymentException- - error while deploying cApp
-
setDirectory
public void setDirectory(String s)
-
setExtension
public void setExtension(String s)
-
undeploy
public void undeploy(String filePath) throws org.apache.axis2.deployment.DeploymentException
Undeploys the cApp from system when the .car file is deleted from the repository. Find the relevant cApp using the file path and call the undeploy method on applicationManager.- Specified by:
undeployin interfaceorg.apache.axis2.deployment.Deployer- Overrides:
undeployin classorg.apache.axis2.deployment.AbstractDeployer- Parameters:
filePath- - deleted .car file path- Throws:
org.apache.axis2.deployment.DeploymentException
-
cleanup
public void cleanup() throws org.apache.axis2.deployment.DeploymentException- Specified by:
cleanupin interfaceorg.apache.axis2.deployment.Deployer- Overrides:
cleanupin classorg.apache.axis2.deployment.AbstractDeployer- Throws:
org.apache.axis2.deployment.DeploymentException
-
-