Package io.micronaut.aop.chain
Class DefaultInterceptorRegistry
- java.lang.Object
-
- io.micronaut.aop.chain.DefaultInterceptorRegistry
-
- All Implemented Interfaces:
InterceptorRegistry
public class DefaultInterceptorRegistry extends java.lang.Object implements InterceptorRegistry
Default implementation of the interceptor registry interface.- Since:
- 3.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOG
-
Fields inherited from interface io.micronaut.aop.InterceptorRegistry
ARGUMENT
-
-
Constructor Summary
Constructors Constructor Description DefaultInterceptorRegistry(io.micronaut.context.BeanContext beanContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Interceptor<T,T>[]
resolveConstructorInterceptors(io.micronaut.core.beans.BeanConstructor<T> constructor, java.util.Collection<io.micronaut.context.BeanRegistration<Interceptor<T,T>>> interceptors)
Resolves interceptors for the given constructor.<T> Interceptor<T,?>[]
resolveInterceptors(io.micronaut.core.type.Executable<T,?> method, java.util.Collection<io.micronaut.context.BeanRegistration<Interceptor<T,?>>> interceptors, InterceptorKind interceptorKind)
Resolves method interceptors for the given method.
-
-
-
Method Detail
-
resolveInterceptors
@NonNull public <T> Interceptor<T,?>[] resolveInterceptors(@NonNull io.micronaut.core.type.Executable<T,?> method, @NonNull java.util.Collection<io.micronaut.context.BeanRegistration<Interceptor<T,?>>> interceptors, @NonNull InterceptorKind interceptorKind)
Description copied from interface:InterceptorRegistry
Resolves method interceptors for the given method.- Specified by:
resolveInterceptors
in interfaceInterceptorRegistry
- Type Parameters:
T
- the bean type- Parameters:
method
- The method interceptorsinterceptors
- The pre-resolved interceptorsinterceptorKind
- The interceptor kind- Returns:
- An array of interceptors
-
resolveConstructorInterceptors
@NonNull public <T> Interceptor<T,T>[] resolveConstructorInterceptors(@NonNull io.micronaut.core.beans.BeanConstructor<T> constructor, @NonNull java.util.Collection<io.micronaut.context.BeanRegistration<Interceptor<T,T>>> interceptors)
Description copied from interface:InterceptorRegistry
Resolves interceptors for the given constructor.- Specified by:
resolveConstructorInterceptors
in interfaceInterceptorRegistry
- Type Parameters:
T
- The bean type- Parameters:
constructor
- The constructorinterceptors
- The pre-resolved interceptors- Returns:
- An array of interceptors
-
-