Class DataSourceCappDeployer

java.lang.Object
org.wso2.carbon.ndatasource.capp.deployer.DataSourceCappDeployer
All Implemented Interfaces:
org.wso2.carbon.application.deployer.handler.AppDeploymentHandler

public class DataSourceCappDeployer extends Object implements org.wso2.carbon.application.deployer.handler.AppDeploymentHandler
This class is the implementation of the data source deployer which will deploy data sources to the server.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deployArtifacts(org.wso2.carbon.application.deployer.CarbonApplication carbonApp, org.apache.axis2.engine.AxisConfiguration axisConfig)
    Deploy the data source artifacts and add them to datasources.
    void
    undeployArtifacts(org.wso2.carbon.application.deployer.CarbonApplication carbonApp, org.apache.axis2.engine.AxisConfiguration axisConfig)
    Un-deploy the data sources and remove them from datasources.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • DataSourceCappDeployer

      public DataSourceCappDeployer()
  • Method Details

    • deployArtifacts

      public void deployArtifacts(org.wso2.carbon.application.deployer.CarbonApplication carbonApp, org.apache.axis2.engine.AxisConfiguration axisConfig) throws org.apache.axis2.deployment.DeploymentException
      Deploy the data source artifacts and add them to datasources.
      Specified by:
      deployArtifacts in interface org.wso2.carbon.application.deployer.handler.AppDeploymentHandler
      Parameters:
      carbonApp - - store info in this object after deploying
      axisConfig - - AxisConfiguration of the current tenant
      Throws:
      org.apache.axis2.deployment.DeploymentException
    • undeployArtifacts

      public void undeployArtifacts(org.wso2.carbon.application.deployer.CarbonApplication carbonApp, org.apache.axis2.engine.AxisConfiguration axisConfig) throws org.apache.axis2.deployment.DeploymentException
      Un-deploy the data sources and remove them from datasources.
      Specified by:
      undeployArtifacts in interface org.wso2.carbon.application.deployer.handler.AppDeploymentHandler
      Parameters:
      carbonApp - - all information about the existing artifacts are in this instance.
      axisConfig - - AxisConfiguration of the current tenant.
      Throws:
      org.apache.axis2.deployment.DeploymentException