Class DefaultInterceptorRegistry

java.lang.Object
io.micronaut.aop.chain.DefaultInterceptorRegistry
All Implemented Interfaces:
InterceptorRegistry

@Internal @NullMarked public final class DefaultInterceptorRegistry extends Object implements InterceptorRegistry
Default implementation of the interceptor registry interface.
Since:
3.0.0
  • Constructor Details

    • DefaultInterceptorRegistry

      public DefaultInterceptorRegistry(io.micronaut.context.BeanContext beanContext)
  • Method Details

    • resolveInterceptors

      public <T> Interceptor<T,?>[] resolveInterceptors(io.micronaut.core.type.Executable<T,?> method, Collection<io.micronaut.context.BeanRegistration<Interceptor<T,?>>> interceptors, InterceptorKind interceptorKind)
      Description copied from interface: InterceptorRegistry
      Resolves method interceptors for the given method.
      Specified by:
      resolveInterceptors in interface InterceptorRegistry
      Type Parameters:
      T - the bean type
      Parameters:
      method - The method interceptors
      interceptors - The pre-resolved interceptors
      interceptorKind - The interceptor kind
      Returns:
      An array of interceptors
    • resolveConstructorInterceptors

      public <T> Interceptor<T,T>[] resolveConstructorInterceptors(io.micronaut.core.beans.BeanConstructor<T> constructor, Collection<io.micronaut.context.BeanRegistration<Interceptor<T,T>>> interceptors)
      Description copied from interface: InterceptorRegistry
      Resolves interceptors for the given constructor.
      Specified by:
      resolveConstructorInterceptors in interface InterceptorRegistry
      Type Parameters:
      T - The bean type
      Parameters:
      constructor - The constructor
      interceptors - The pre-resolved interceptors
      Returns:
      An array of interceptors