Class CappAxis2Deployer

  • All Implemented Interfaces:
    org.apache.axis2.deployment.Deployer

    public class CappAxis2Deployer
    extends org.apache.axis2.deployment.AbstractDeployer
    • Constructor Detail

      • CappAxis2Deployer

        public CappAxis2Deployer()
    • 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.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:
        deploy in interface org.apache.axis2.deployment.Deployer
        Overrides:
        deploy in class org.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:
        undeploy in interface org.apache.axis2.deployment.Deployer
        Overrides:
        undeploy in class org.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:
        cleanup in interface org.apache.axis2.deployment.Deployer
        Overrides:
        cleanup in class org.apache.axis2.deployment.AbstractDeployer
        Throws:
        org.apache.axis2.deployment.DeploymentException