Examples of ProxyObserver


Examples of org.wso2.carbon.proxyadmin.observer.ProxyObserver

            if (synEnvService != null) {
                AxisConfiguration axisConf = synEnvService.getConfigurationContext().
                        getAxisConfiguration();
               
                try {
                    ProxyObserver proxyObserver = new ProxyObserver(
                            synEnvService.getSynapseEnvironment().getSynapseConfiguration(),
                            ConfigHolder.getInstance().getRegistryService().
                                    getConfigSystemRegistry());

                    ConfigHolder.getInstance().addProxyObserver(
View Full Code Here

Examples of org.wso2.carbon.proxyadmin.observer.ProxyObserver

        if (initialized) {
            int tenantId = synapseEnvironmentService.getTenantId();
            AxisConfiguration axisConfiguration = synapseEnvironmentService.
                    getConfigurationContext().getAxisConfiguration();

            ProxyObserver observer;
            if (!alreadyCreated) {
                try {
                    registerDeployer(
                            synapseEnvironmentService.getConfigurationContext().getAxisConfiguration(),
                            synapseEnvironmentService.getSynapseEnvironment());

                    observer = new ProxyObserver(
                            synapseEnvironmentService.getSynapseEnvironment().getSynapseConfiguration(),
                            ConfigHolder.getInstance().getRegistryService().
                                    getConfigSystemRegistry(tenantId));
                    axisConfiguration.addObservers(observer);
                    ConfigHolder.getInstance().addProxyObserver(tenantId, observer);
                } catch (ProxyAdminException e) {
                    log.error("Error while initializing the proxy admin.", e);
                } catch (RegistryException e) {
                    log.error("Error while initializing the proxy admin.", e);
                }
            } else {
                observer = ConfigHolder.getInstance().getProxyObsever(tenantId);
                if (observer != null) {
                    observer.setSynapseConfig(synapseEnvironmentService.getSynapseEnvironment().
                            getSynapseConfiguration());
                }
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.