use of org.apache.synapse.deployers.LibraryArtifactDeployer in project wso2-synapse by wso2.
the class Axis2SynapseController method deployMediationLibraryArtifacts.
/**
* The mediation library deployer will handling the process of deploying the
* libararyArtifacts, this is required since the library specific artifacts
* has to be initialized priorly for the cases like connectors
*/
private void deployMediationLibraryArtifacts() {
if (configurationContext == null || synapseConfiguration == null) {
return;
}
DeploymentEngine deploymentEngine = (DeploymentEngine) configurationContext.getAxisConfiguration().getConfigurator();
String libsPath = deploymentEngine.getRepositoryDir().getPath() + File.separator + "synapse-libs";
deploymentEngine.addDeployer(new LibraryArtifactDeployer(), libsPath, "zip");
}
Aggregations