Class InterceptorsManager


  • public class InterceptorsManager
    extends Object
    This class keeps all the enabled interceptor classes information of a certain BeanManager.
    • Constructor Detail

      • InterceptorsManager

        public InterceptorsManager​(WebBeansContext webBeansContext)
    • Method Detail

      • clear

        public void clear()
        Clears all info. This must only be called by the BeanManager.
      • addEnabledInterceptorClass

        public void addEnabledInterceptorClass​(Class<?> interceptorClazz)
        Add a certain class to the enabled interceptors list.
      • getEjbInterceptorForClass

        public <T> jakarta.enterprise.inject.spi.Interceptor<T> getEjbInterceptorForClass​(Class<T> interceptorClass)
        get the EJB-style Interceptor
        Type Parameters:
        T -
        Parameters:
        interceptorClass -
        Returns:
      • compareCdiInterceptors

        public int compareCdiInterceptors​(Class<?> src,
                                          Class<?> target)
        Helper to compare the order of different interceptor classes
      • isInterceptorClassEnabled

        public boolean isInterceptorClassEnabled​(Class<?> interceptorClazz)
        Check if the given interceptor class is in the list of enabled interceptors.
      • resolveInterceptors

        public List<jakarta.enterprise.inject.spi.Interceptor<?>> resolveInterceptors​(jakarta.enterprise.inject.spi.InterceptionType type,
                                                                                      Annotation... interceptorBindings)
      • addCdiInterceptor

        public void addCdiInterceptor​(jakarta.enterprise.inject.spi.Interceptor interceptor)
        Add a CDI-style interceptor. These are interceptors declared using an InterceptorBinding.
        Parameters:
        interceptor -
      • getCdiInterceptors

        public List<jakarta.enterprise.inject.spi.Interceptor<?>> getCdiInterceptors()
      • addCustomInterceptorClass

        public void addCustomInterceptorClass​(Class<?> clazz)
      • containsCustomInterceptorClass

        public boolean containsCustomInterceptorClass​(Class<?> clazz)
      • addInterceptorBindingType

        public void addInterceptorBindingType​(jakarta.enterprise.inject.spi.AnnotatedType<? extends Annotation> annotatedType)
      • addInterceptorBindingType

        public void addInterceptorBindingType​(Class<? extends Annotation> bindingType,
                                              Annotation... inheritsArray)
      • hasInterceptorBindingType

        public boolean hasInterceptorBindingType​(Class<? extends Annotation> bindingType)
      • validateInterceptorClasses

        public void validateInterceptorClasses()
      • getPriority

        public int getPriority​(Class<?> type)
      • getPrioritizedInterceptors

        public List<Class<?>> getPrioritizedInterceptors()
      • addPriorityClazzInterceptor

        public void addPriorityClazzInterceptor​(Class<?> javaClass,
                                                int priority)