Examples of DelegateHandler


Examples of org.apache.webbeans.decorator.DelegateHandler

            if (proxyClass == null) {
                proxyClass = proxyFactory.createProxyClass(bean);
                proxyFactory.getInterceptorProxyClasses().put((InjectionTargetBean<?>) bean, proxyClass);
            }

            final DelegateHandler delegateHandler = new DelegateHandler(bean, ejbContext);
            final Object delegate = proxyFactory.createDecoratorDelegate(bean, delegateHandler);

            // Gets component decorator stack
            List<Object> decorators = WebBeansDecoratorConfig.getDecoratorStack(bean, instance, delegate, (CreationalContextImpl<?>) context);
            //Sets decorator stack of delegate
            delegateHandler.setDecorators(decorators);

            return delegateHandler.invoke(instance, ejbContext.getMethod(), null, ejbContext.getParameters());
        } else {
            return ejbContext.proceed();
        }
    }
View Full Code Here

Examples of org.apache.webbeans.decorator.DelegateHandler

                                                              InjectionTargetBean<?> injectionTarget)
            throws Exception
    {
        if (decoratorDelegateHandler == null)
        {
            final DelegateHandler newDelegateHandler = new DelegateHandler(bean);
            final ProxyFactory proxyFactory = webBeansContext.getProxyFactory();

            final Object delegate = proxyFactory.createDecoratorDelegate(bean, newDelegateHandler);

            // Gets component decorator stack
            List<Object> decorators = WebBeansDecoratorConfig.getDecoratorStack(injectionTarget, instance, delegate, ownerCreationalContext);
            //Sets decorator stack of delegate
            newDelegateHandler.setDecorators(decorators);
            decoratorDelegateHandler = newDelegateHandler;
        }
    }
View Full Code Here

Examples of org.apache.webbeans.decorator.DelegateHandler

            if (proxyClass == null) {
                proxyClass = proxyFactory.createProxyClass(bean);
                proxyFactory.getInterceptorProxyClasses().put((InjectionTargetBean<?>) bean, proxyClass);
            }

            final DelegateHandler delegateHandler = new DelegateHandler(bean, ejbContext);
            final Object delegate = proxyFactory.createDecoratorDelegate(bean, delegateHandler);

            // Gets component decorator stack
            List<Object> decorators = WebBeansDecoratorConfig.getDecoratorStack(bean, instance, delegate, (CreationalContextImpl<?>) context);
            //Sets decorator stack of delegate
            delegateHandler.setDecorators(decorators);

            return delegateHandler.invoke(instance, ejbContext.getMethod(), null, ejbContext.getParameters());
        } else {
            return ejbContext.proceed();
        }
    }
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.