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 String
DATA_SOURCE_TYPE
-
Constructor Summary
Constructors Constructor Description DataSourceCappDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Field Detail
-
DATA_SOURCE_TYPE
public static final String DATA_SOURCE_TYPE
- See Also:
- Constant Field Values
-
-
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 interfaceorg.wso2.carbon.application.deployer.handler.AppDeploymentHandler
- Parameters:
carbonApp
- - store info in this object after deployingaxisConfig
- - 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 interfaceorg.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
-
-