Class CdiInterceptorFactory<T>

java.lang.Object
org.jboss.weld.bean.interceptor.CdiInterceptorFactory<T>
Type Parameters:
T - the type of the interceptor
All Implemented Interfaces:
InterceptorFactory<T>

public class CdiInterceptorFactory<T> extends Object implements InterceptorFactory<T>
InterceptorFactory that obtains an interceptor instance using BeanManagerImpl.

This factory is used for all Interceptor implementations.

Author:
Jozef Hartinger
  • Constructor Details

    • CdiInterceptorFactory

      public CdiInterceptorFactory(jakarta.enterprise.inject.spi.Interceptor<T> interceptor)
  • Method Details

    • create

      public T create(jakarta.enterprise.context.spi.CreationalContext<T> ctx, BeanManagerImpl manager)
      Description copied from interface: InterceptorFactory
      Create a new instance of the interceptor
      Specified by:
      create in interface InterceptorFactory<T>
      Returns:
    • getInterceptor

      public jakarta.enterprise.inject.spi.Interceptor<T> getInterceptor()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object