Class 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 interface EnterpriseBeanInstance on the proxy.
    Author:
    David Allen
    • 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: 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
      • getProxyNameSuffix

        protected String getProxyNameSuffix()
        Description copied from class: ProxyFactory
        Returns 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:
        getProxyNameSuffix in class ProxyFactory<T>
        Returns:
        a name suffix