org.jboss.weld.bean.proxy
Class EnterpriseProxyFactory<T>

java.lang.Object
  extended by org.jboss.weld.bean.proxy.ProxyFactory<T>
      extended by org.jboss.weld.bean.proxy.EnterpriseProxyFactory<T>

public class EnterpriseProxyFactory<T>
extends ProxyFactory<T>

This factory produces client proxies specific for enterprise beans, in particular session beans. It adds the interface EnterpriseBeanInstance on the proxy.

Author:
David Allen

Field Summary
 
Fields inherited from class org.jboss.weld.bean.proxy.ProxyFactory
CONSTRUCTED_FLAG_NAME, DEFAULT_METHOD_RESOLVER, DEFAULT_PROXY_PACKAGE, log, PROXY_SUFFIX
 
Constructor Summary
EnterpriseProxyFactory(Class<T> proxiedBeanType, javax.enterprise.inject.spi.Bean<T> bean)
          Produces a factory for a specific bean implementation.
 
Method Summary
protected  void addSpecialMethods(javassist.bytecode.ClassFile proxyClassType)
          Adds methods requiring special implementations rather than just delegation.
 
Methods inherited from class org.jboss.weld.bean.proxy.ProxyFactory
addAdditionalInterfaces, addConstructedGuardToMethodBody, addConstructors, addFields, addInterface, addMethods, addMethodsFromClass, addSerializationSupport, create, createForwardingMethodBody, createInterceptorBody, createSpecialMethodBody, generateEqualsMethod, generateHashCodeMethod, getAdditionalInterfaces, getBaseProxyName, getBean, getBeanType, getProxyClass, getProxyNameSuffix, invokeMethodHandler, isProxy, resolveClassLoaderForBeanProxy, resolveClassLoaderForBeanProxy, setBeanInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnterpriseProxyFactory

public EnterpriseProxyFactory(Class<T> proxiedBeanType,
                              javax.enterprise.inject.spi.Bean<T> bean)
Produces a factory for a specific bean implementation.

Parameters:
proxiedBeanType - the actual enterprise bean
Method Detail

addSpecialMethods

protected void addSpecialMethods(javassist.bytecode.ClassFile proxyClassType)
Description copied from class: ProxyFactory
Adds methods requiring special implementations rather than just delegation.

Overrides:
addSpecialMethods in class ProxyFactory<T>
Parameters:
proxyClassType - the Javassist class description for the proxy type


Copyright © 2013 Seam Framework. All Rights Reserved.