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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    deploy(org.apache.axis2.deployment.repository.util.DeploymentFileData deploymentFileData)
    Axis2 deployment engine will call this method when a .car archive is deployed.
    void
    init(org.apache.axis2.context.ConfigurationContext configurationContext)
     
    void
     
    void
     
    void
    undeploy(String filePath)
    Undeploys 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, wait

    Methods 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:
      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