Class Interceptors


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

      • 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: