Package org.jboss.weld.bean.proxy

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


    @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


    protected T newInstance(Object[] parameterValues) {
        // Once the instance is created, a method handler is required regardless of whether
        // an actual bean instance is known yet.
        final T instance = super.newInstance(parameterValues);
        if (decorator) {
            BeanInstance beanInstance = null;
            if (hasDelegateInjectionPoint()) {
                Object decoratorDelegate = parameterValues[delegateInjectionPointPosition];
                beanInstance = new TargetBeanInstance(decoratorDelegate);
            }
            ProxyFactory.setBeanInstance(contextId, instance, beanInstance, bean);
View Full Code Here

TOP

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

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.