Class Interceptors

java.lang.Object
org.jboss.weld.util.Interceptors

public class Interceptors extends Object
Helper class for working with interceptors and interceptor bindings.
Author:
Jozef Hartinger
  • Method Details

    • filterInterceptorBindings

      public static Set<Annotation> filterInterceptorBindings(BeanManagerImpl beanManager, Collection<Annotation> annotations)
      Extracts a set of interceptor bindings from a collection of annotations.
      Parameters:
      beanManager -
      annotations -
      Returns:
    • flattenInterceptorBindings

      public static Set<Annotation> flattenInterceptorBindings(EnhancedAnnotatedType<?> clazz, BeanManagerImpl beanManager, Collection<Annotation> annotations, boolean addTopLevelInterceptorBindings, boolean addInheritedInterceptorBindings)
      Extracts a flat set of interception bindings from a given set of interceptor bindings.
      Parameters:
      addTopLevelInterceptorBindings - add top level interceptor bindings to the result set.
      addInheritedInterceptorBindings - add inherited level interceptor bindings to the result set.
      Returns:
    • mergeBeanInterceptorBindings

      public static Multimap<Class<? extends Annotation>,Annotation> mergeBeanInterceptorBindings(BeanManagerImpl beanManager, EnhancedAnnotatedType<?> clazz, Collection<Class<? extends Annotation>> stereotypes)
      Merge class-level interceptor bindings with interceptor bindings inherited from interceptor bindings and stereotypes.
    • mergeBeanInterceptorBindings

      public static Multimap<Class<? extends Annotation>,Annotation> mergeBeanInterceptorBindings(BeanManagerImpl beanManager, jakarta.enterprise.inject.spi.AnnotatedType<?> clazz, Collection<Annotation> classBindingAnnotations, Collection<Annotation> inheritedBindingAnnotations)
      Merge class-level interceptor bindings with interceptor bindings inherited from interceptor bindings and stereotypes.