Package org.jboss.weld.bean.proxy

Examples of org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance


    private final T proxy;

    protected AbstractEEBean(Class<T> type, Callable<T> callable, BeanManagerImpl beanManager) {
        super(beanManager, type);
        this.proxy = new ProxyFactory<T>(beanManager.getContextId(), type, getTypes(), this).create(new EnterpriseTargetBeanInstance(type, new CallableMethodHandler(callable)));
    }
View Full Code Here


    @Override
    public T create(CreationalContext<T> creationalContext) {
        if (Reflections.isFinal(rawType) || Serializable.class.isAssignableFrom(rawType)) {
            return createUnderlying(creationalContext);
        } else {
            BeanInstance proxyBeanInstance = new EnterpriseTargetBeanInstance(getTypes(), new CallableMethodHandler(new EEResourceCallable<T>(getBeanManager(), this, creationalContext)));
            return proxyFactory.create(proxyBeanInstance);
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance

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.