Package org.jboss.weld.bean.proxy
Class EnterpriseProxyFactory<T>
- java.lang.Object
-
- org.jboss.weld.bean.proxy.ProxyFactory<T>
-
- org.jboss.weld.bean.proxy.EnterpriseProxyFactory<T>
-
- All Implemented Interfaces:
PrivilegedAction<T>
public class EnterpriseProxyFactory<T> extends ProxyFactory<T>
This factory produces client proxies specific for enterprise beans, in particular session beans. It adds the interfaceEnterpriseBeanInstanceon 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, INIT_METHOD_NAME, LBEAN_IDENTIFIER, LJAVA_LANG_BYTE, LJAVA_LANG_CLASS, LJAVA_LANG_OBJECT, LJAVA_LANG_REFLECT_METHOD, LJAVA_LANG_STRING, LJAVA_LANG_THREAD_LOCAL, METHOD_HANDLER_FIELD_NAME, PROXY_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description EnterpriseProxyFactory(Class<T> proxiedBeanType, SessionBean<T> bean)Produces a factory for a specific bean implementation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddSpecialMethods(org.jboss.classfilewriter.ClassFile proxyClassType, org.jboss.classfilewriter.ClassMethod staticConstructor)Adds methods requiring special implementations rather than just delegation.protected StringgetProxyNameSuffix()Returns a suffix to append to the name of the proxy class.protected booleanisMethodAccepted(Method method)-
Methods inherited from class org.jboss.weld.bean.proxy.ProxyFactory
addAdditionalInterfaces, addConstructedGuardToMethodBody, addConstructors, addFields, addInterface, addInterfacesFromTypeClosure, addMethods, addMethodsFromClass, addSerializationSupport, create, createForwardingMethodBody, createInterceptorBody, createSpecialMethodBody, generateEqualsMethod, generateGetMethodHandlerBody, generateHashCodeMethod, generateSetMethodHandlerBody, getAdditionalInterfaces, getBaseProxyName, getBean, getBeanType, getCachedProxyClass, getContextId, getMethodHandlerField, getMethodHandlerType, getProxyClass, invokeMethodHandler, isCreatingProxy, isProxy, resolveClassLoaderForBeanProxy, run, setBeanInstance
-
-
-
-
Constructor Detail
-
EnterpriseProxyFactory
public EnterpriseProxyFactory(Class<T> proxiedBeanType, SessionBean<T> bean)
Produces a factory for a specific bean implementation.- Parameters:
proxiedBeanType- the actual enterprise bean
-
-
Method Detail
-
addSpecialMethods
protected void addSpecialMethods(org.jboss.classfilewriter.ClassFile proxyClassType, org.jboss.classfilewriter.ClassMethod staticConstructor)Description copied from class:ProxyFactoryAdds methods requiring special implementations rather than just delegation.- Overrides:
addSpecialMethodsin classProxyFactory<T>- Parameters:
proxyClassType- the Javassist class description for the proxy type
-
getProxyNameSuffix
protected String getProxyNameSuffix()
Description copied from class:ProxyFactoryReturns a suffix to append to the name of the proxy class. The name already consists of_$$_Weld, to which the suffix is added. This allows the creation of different types of proxies for the same class. - Overrides:
getProxyNameSuffixin classProxyFactory<T>- Returns:
- a name suffix
-
isMethodAccepted
protected boolean isMethodAccepted(Method method)
- Overrides:
isMethodAcceptedin classProxyFactory<T>
-
-