Package org.apache.axis2.deployment

Examples of org.apache.axis2.deployment.DeploymentEngine


     * @param axisConfig AxisConfiguration to which this deployer belongs
     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void unregisterDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment) {
        if (axisConfig != null) {
            DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
            String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                    synapseEnvironment.getServerContextInformation());
            String processorDirPath = synapseConfigPath
                    + File.separator + MultiXMLConfigurationBuilder.MESSAGE_PROCESSOR_DIR;
            deploymentEngine.removeDeployer(
                    processorDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
        }
    }
View Full Code Here


     * @param axisConfig         AxisConfiguration to which this deployer belongs
     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void unregisterDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment) {
        if (axisConfig != null) {
            DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
            String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                    synapseEnvironment.getServerContextInformation());
            String sequencesDirPath = synapseConfigPath
                    + File.separator + MultiXMLConfigurationBuilder.SEQUENCES_DIR;
            deploymentEngine.removeDeployer(
                    sequencesDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
        }
    }
View Full Code Here

     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void registerDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment)
            throws SequenceEditorException {
        SynapseConfiguration synCfg = synapseEnvironment.getSynapseConfiguration();
        DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
        SynapseArtifactDeploymentStore deploymentStore = synCfg.getArtifactDeploymentStore();

        String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                synapseEnvironment.getServerContextInformation());
        String sequenceDirPath = synapseConfigPath
                + File.separator + MultiXMLConfigurationBuilder.SEQUENCES_DIR;

        for (SequenceMediator seq : synCfg.getDefinedSequences().values()) {
            if (seq.getFileName() != null) {
                deploymentStore.addRestoredArtifact(
                        sequenceDirPath + File.separator + seq.getFileName());
            }
        }
        deploymentEngine.addDeployer(new SequenceDeploymentInterceptor(),
                sequenceDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
    }
View Full Code Here

     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void registerDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment) {

        SynapseConfiguration synCfg = synapseEnvironment.getSynapseConfiguration();
        DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
        SynapseArtifactDeploymentStore deploymentStore = synCfg.getArtifactDeploymentStore();

        String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                synapseEnvironment.getServerContextInformation());
        String messageStoreDirPath = synapseConfigPath
                + File.separator + MultiXMLConfigurationBuilder.MESSAGE_STORE_DIR;

        for (MessageStore messageStore : synCfg.getMessageStores().values()) {
            if (messageStore.getFileName() != null) {
                deploymentStore.addRestoredArtifact(
                        messageStoreDirPath + File.separator + messageStore.getFileName());
            }
        }

        deploymentEngine.addDeployer(new MessageStoreDeployer(),
                messageStoreDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);

    }
View Full Code Here

     * @param axisConfig AxisConfiguration to which this deployer belongs
     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void unregisterDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment) {
        if (axisConfig != null) {
            DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
            String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                    synapseEnvironment.getServerContextInformation());
            String storeDirPath = synapseConfigPath
                    + File.separator + MultiXMLConfigurationBuilder.MESSAGE_STORE_DIR;
            deploymentEngine.removeDeployer(
                    storeDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
        }
    }
View Full Code Here

     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void unregisterDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment)
            throws EndpointAdminException {
        if (axisConfig != null) {
            DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
            String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                    synapseEnvironment.getServerContextInformation());
            String endpointDirPath = synapseConfigPath
                    + File.separator + MultiXMLConfigurationBuilder.ENDPOINTS_DIR;
            deploymentEngine.removeDeployer(
                    endpointDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
        }
    }
View Full Code Here

     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void registerDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment)
            throws EndpointAdminException {
        SynapseConfiguration synCfg = synapseEnvironment.getSynapseConfiguration();
        DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
        SynapseArtifactDeploymentStore deploymentStore = synCfg.getArtifactDeploymentStore();

        String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                synapseEnvironment.getServerContextInformation());
        String endpointDirPath = synapseConfigPath
                + File.separator + MultiXMLConfigurationBuilder.ENDPOINTS_DIR;

        for (Endpoint ep : synCfg.getDefinedEndpoints().values()) {
            if (ep.getFileName() != null) {
                deploymentStore.addRestoredArtifact(
                        endpointDirPath + File.separator + ep.getFileName());
            }
        }
        deploymentEngine.addDeployer(
                new EndpointDeployer(), endpointDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
    }
View Full Code Here

     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void registerDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment)
            throws EventSourceAdminException {
        SynapseConfiguration synCfg = synapseEnvironment.getSynapseConfiguration();
        DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
        SynapseArtifactDeploymentStore deploymentStore = synCfg.getArtifactDeploymentStore();

        String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                synapseEnvironment.getServerContextInformation());
        String eventSourceDirPath = synapseConfigPath
                + File.separator + MultiXMLConfigurationBuilder.EVENTS_DIR;

        for (SynapseEventSource ses : synCfg.getEventSources()) {
            if (ses.getFileName() != null) {
                deploymentStore.addRestoredArtifact(
                        eventSourceDirPath + File.separator + ses.getFileName());
            }
        }
        deploymentEngine.addDeployer(new EventSourceDeployer(),
                eventSourceDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
    }
View Full Code Here

     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void unregisterDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment)
            throws EventSourceAdminException {
        if (axisConfig != null) {
            DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
            String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                    synapseEnvironment.getServerContextInformation());
            String eventSourceDirPath = synapseConfigPath
                    + File.separator + MultiXMLConfigurationBuilder.EVENTS_DIR;
            deploymentEngine.removeDeployer(
                    eventSourceDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
        }
    }
View Full Code Here

     * @param axisConfig         AxisConfiguration to which this deployer belongs
     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void unRegisterDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment) {
        if (axisConfig != null) {
            DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
            String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                    synapseEnvironment.getServerContextInformation());
            String endpointDirPath = synapseConfigPath
                    + File.separator + MultiXMLConfigurationBuilder.EXECUTORS_DIR;
            deploymentEngine.removeDeployer(
                    endpointDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.deployment.DeploymentEngine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.