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
-
Field Summary
Fields inherited from class org.apache.axis2.deployment.AbstractDeployer
deploymentFileDataMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()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) voidvoidvoidUndeploys the cApp from system when the .car file is deleted from the repository.Methods 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
sort
-
Constructor Details
-
CappAxis2Deployer
public CappAxis2Deployer()
-
-
Method Details
-
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.DeploymentException Axis2 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
-
setExtension
-
undeploy
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
-