Package org.impalaframework.spring.service

Examples of org.impalaframework.spring.service.ServiceEndpointTargetSource


    public void init() {
       
        Assert.notNull(reference, "reference cannot be null");
       
        ServiceEndpointTargetSource targetSource = new StaticServiceRegistryTargetSource(reference);
       
        ProxyFactory proxyFactory = new ProxyFactory();
        if (!ArrayUtils.isNullOrEmpty(proxyTypes)) {
            ProxyFactorySourceUtils.addInterfaces(proxyFactory, proxyTypes);
        } else {
View Full Code Here


            }
        } else {
            targetClass = null;
        }
       
        ServiceEndpointTargetSource targetSource = new ListBackedRegistryTargetSource(this.list, targetClass);
        ProxyFactory proxyFactory = new ProxyFactory();
       
        if (targetSource.getTargetClass() == null) {
            //not proxying by class, so proxy by interface
            ProxyFactorySourceUtils.addInterfaces(proxyFactory, proxyTypes);
        }
       
        afterInit(proxyFactory, targetSource);
View Full Code Here

        Assert.notNull(this.serviceRegistry, "serviceRegistry cannot be null");
       
        //BeanRetrievingServiceRegistryTargetSource implements rules on whether bean name, proxyTypes or exportTypes can and cannot be null
       
        //this will return a non-null value if single interface which is concrete class
        ServiceEndpointTargetSource targetSource = new BeanRetrievingServiceRegistryTargetSource(
                this.serviceRegistry,
                registryBeanName,
                proxyTypes,
                exportTypes);
       
        ProxyFactory proxyFactory = new ProxyFactory();
       
        if (targetSource.getTargetClass() == null) {
            //not proxying by class, so proxy by interface
            ProxyFactorySourceUtils.addInterfaces(proxyFactory, proxyTypes);
        }
       
        afterInit(proxyFactory, targetSource);
View Full Code Here

            }
        } else {
            targetClass = null;
        }
       
        ServiceEndpointTargetSource targetSource = new ListBackedRegistryTargetSource(this.list, targetClass);
        ProxyFactory proxyFactory = new ProxyFactory();
       
        if (targetSource.getTargetClass() == null) {
            //not proxying by class, so proxy by interface
            ProxyFactorySourceUtils.addInterfaces(proxyFactory, proxyTypes);
        }
       
        afterInit(proxyFactory, targetSource);
View Full Code Here

     */
    public final ProxyFactory createProxyFactory(ProxyFactorySource proxyFactorySource, String beanName) {
       
        proxyFactorySource.init();
        ProxyFactory proxyFactory = proxyFactorySource.getProxyFactory();
        ServiceEndpointTargetSource targetSource = proxyFactorySource.getTargetSource();
       
        addInterceptor(beanName, proxyFactory, targetSource);
       
        return proxyFactory;
    }
View Full Code Here

    public void init() {
       
        Assert.notNull(reference, "reference cannot be null");
       
        ServiceEndpointTargetSource targetSource = new StaticServiceRegistryTargetSource(reference);
       
        ProxyFactory proxyFactory = new ProxyFactory();
        if (!ArrayUtils.isNullOrEmpty(proxyTypes)) {
            ProxyFactorySourceUtils.addInterfaces(proxyFactory, proxyTypes);
        } else {
View Full Code Here

        Assert.notNull(this.serviceRegistry, "serviceRegistry cannot be null");
        Assert.notNull(proxyTypes, "proxyTypes cannot be null");
        Assert.notEmpty(proxyTypes, "proxyTypes cannot be empty");
       
        //this will return a non-null value if single interface which is concrete class
        ServiceEndpointTargetSource targetSource = new BeanRetrievingServiceRegistryTargetSource(this.serviceRegistry, registryBeanName, proxyTypes, exportTypesOnly);
        ProxyFactory proxyFactory = new ProxyFactory();
       
        if (targetSource.getTargetClass() == null) {
            //not proxying by class, so proxy by interface
            ProxyFactorySourceUtils.addInterfaces(proxyFactory, proxyTypes);
        }
       
        afterInit(proxyFactory, targetSource);
View Full Code Here

     */
    public final ProxyFactory createProxyFactory(ProxyFactorySource proxyFactorySource, String beanName, Map<String, String> options) {
       
        proxyFactorySource.init();
        ProxyFactory proxyFactory = proxyFactorySource.getProxyFactory();
        ServiceEndpointTargetSource targetSource = proxyFactorySource.getTargetSource();
       
        addInterceptor(beanName, proxyFactory, targetSource, options);
       
        return proxyFactory;
    }
View Full Code Here

     */
    public final ProxyFactory createProxyFactory(ProxyFactorySource proxyFactorySource, String beanName) {
       
        proxyFactorySource.init();
        ProxyFactory proxyFactory = proxyFactorySource.getProxyFactory();
        ServiceEndpointTargetSource targetSource = proxyFactorySource.getTargetSource();
       
        addInterceptor(beanName, proxyFactory, targetSource);
       
        return proxyFactory;
    }
View Full Code Here

        Assert.notNull(this.serviceRegistry, "serviceRegistry cannot be null");
       
        //BeanRetrievingServiceRegistryTargetSource implements rules on whether bean name, proxyTypes or exportTypes can and cannot be null
       
        //this will return a non-null value if single interface which is concrete class
        ServiceEndpointTargetSource targetSource = new BeanRetrievingServiceRegistryTargetSource(
                this.serviceRegistry,
                registryBeanName,
                proxyTypes,
                exportTypes);
       
        ProxyFactory proxyFactory = new ProxyFactory();
       
        if (targetSource.getTargetClass() == null) {
            //not proxying by class, so proxy by interface
            ProxyFactorySourceUtils.addInterfaces(proxyFactory, proxyTypes);
        }
       
        afterInit(proxyFactory, targetSource);
View Full Code Here

TOP

Related Classes of org.impalaframework.spring.service.ServiceEndpointTargetSource

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.