Package org.apache.webbeans.decorator

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

Related Classes of org.apache.webbeans.decorator.DelegateHandler

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.