Class InterceptedProxyFactory<T>

java.lang.Object
org.jboss.weld.bean.proxy.ProxyFactory<T>
org.jboss.weld.bean.proxy.InterceptedProxyFactory<T>
Type Parameters:
T -

public class InterceptedProxyFactory<T> extends ProxyFactory<T>
Generates proxies used to apply interceptors to custom bean instances and return values of producer methods.
Author:
Martin Kouba, Matej Novotny
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • 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 <class-name>_$$_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
    • addMethodsFromClass

      protected void addMethodsFromClass(org.jboss.classfilewriter.ClassFile proxyClassType, org.jboss.classfilewriter.ClassMethod staticConstructor)
      Overrides:
      addMethodsFromClass in class ProxyFactory<T>
    • addInterfacesFromTypeClosure

      public void addInterfacesFromTypeClosure(Set<? extends Type> typeClosure, Class<?> proxiedBeanType)
      Overrides:
      addInterfacesFromTypeClosure in class ProxyFactory<T>
    • isMethodAccepted

      protected boolean isMethodAccepted(Method method, Class<?> proxySuperclass)
      Overrides:
      isMethodAccepted in class ProxyFactory<T>