Examples of EnterpriseTargetBeanInstance


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

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

    @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
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.