Examples of addObservers()


Examples of org.apache.axis2.engine.AxisConfiguration.addObservers()

    public void createdConfigurationContext(ConfigurationContext configCtx) {
        AxisConfiguration axisConfig = configCtx.getAxisConfiguration();
        int tenantId = SuperTenantCarbonContext.getCurrentContext(axisConfig).getTenantId();
        //Register SecurityDeploymentInterceptor as an AxisObserver in tenant's AxisConfig.
        SecurityDeploymentInterceptor secDeployInterceptor = new SecurityDeploymentInterceptor();
        axisConfig.addObservers(secDeployInterceptor);

        //Store the policy resources in newly created tenant's config. registry
        HashMap<String, Resource> policyResourceMap = SecurityServiceHolder.getPolicyResourceMap();
        try {
            Registry registry = SecurityServiceHolder.getRegistryService().getConfigSystemRegistry(
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.addObservers()

        }
        try {
          AxisConfiguration config = configContext.getAxisConfiguration();
          WSDeploymentInterceptor interceptor = new WSDeploymentInterceptor();
          interceptor.init(config);
          config.addObservers(interceptor);
        } catch (Throwable e) {
            log.error("Error occured while updating Registry WS API service", e);
        }
    }
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.addObservers()

        this.moduleName = module.getName();
        CacheConfiguration cacheConfig = null;
        CachingObserver cachingObserver = new CachingObserver();
        AxisConfiguration axisConfiguration = configContext.getAxisConfiguration();
        axisConfiguration.addObservers(cachingObserver);

        PolicySubject policySubject = module.getPolicySubject();

        if (policySubject != null) {
            try {
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.addObservers()

    protected void activate(ComponentContext context) {
        if (cfgCtx != null) {
            AxisConfiguration axisConfig = cfgCtx.getAxisConfiguration();
            DiscoveryProxyObserver observer = new DiscoveryProxyObserver();
            observer.init(axisConfig);
            axisConfig.addObservers(observer);
        } else {
            log.warn("ConfigurationContext is not available. Unable to register the " +
                    "DiscoveryProxyObserver.");
        }
    }
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.addObservers()

        initDefaultThrottle();
        Throttle throttle;

        ThrottleObserver observer = new ThrottleObserver(configctx, defaultThrottle);
        AxisConfiguration axisConfiguration = configctx.getAxisConfiguration();
        axisConfiguration.addObservers(observer);

        PolicySubject policySubject = module.getPolicySubject();
        if (policySubject != null) {
            List list = new ArrayList(policySubject.getAttachedPolicyComponents());
            Policy policy = PolicyUtil.getMergedPolicy(list, null);
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.addObservers()

                                    getConfigSystemRegistry());

                    ConfigHolder.getInstance().addProxyObserver(
                            MultitenantConstants.SUPER_TENANT_ID, proxyObserver);

                    axisConf.addObservers(proxyObserver);

                    registerDeployer(synEnvService.getConfigurationContext().getAxisConfiguration(),
                            synEnvService.getSynapseEnvironment());
                } catch (ProxyAdminException e) {
                    log.error("Error while initializing the proxy service observer. " +
View Full Code Here

Examples of org.apache.axis2.engine.AxisConfiguration.addObservers()

                    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);
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.