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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeployArtifacts(org.wso2.carbon.application.deployer.CarbonApplication carbonApp, org.apache.axis2.engine.AxisConfiguration axisConfig) Deploy the data source artifacts and add them to datasources.voidundeployArtifacts(org.wso2.carbon.application.deployer.CarbonApplication carbonApp, org.apache.axis2.engine.AxisConfiguration axisConfig) Un-deploy the data sources and remove them from datasources.
-
Field Details
-
DATA_SOURCE_TYPE
- See Also:
-
-
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:
deployArtifactsin 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:
undeployArtifactsin 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
-