Class 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.
    • Constructor Detail

      • DataSourceCappDeployer

        public DataSourceCappDeployer()
    • Method Detail

      • 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