Search in sources :

Example 1 with LibraryArtifactDeployer

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");
}
Also used : LibraryArtifactDeployer(org.apache.synapse.deployers.LibraryArtifactDeployer) DeploymentEngine(org.apache.axis2.deployment.DeploymentEngine)

Aggregations

DeploymentEngine (org.apache.axis2.deployment.DeploymentEngine)1 LibraryArtifactDeployer (org.apache.synapse.deployers.LibraryArtifactDeployer)1