Package io.micronaut.aop
Interface InterceptorRegistry
- All Known Implementing Classes:
DefaultInterceptorRegistry
@NullMarked
public interface InterceptorRegistry
Strategy interface for looking up interceptors from the bean context.
- Since:
- 3.0.0
- Author:
- graemerocher
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Argument<InterceptorRegistry> Constant for bean lookup. -
Method Summary
Modifier and TypeMethodDescription<T> Interceptor<T,T>[] resolveConstructorInterceptors(BeanConstructor<T> constructor, Collection<BeanRegistration<Interceptor<T, T>>> interceptors) Resolves interceptors for the given constructor.<T> Interceptor<T,?>[] resolveInterceptors(Executable<T, ?> method, Collection<BeanRegistration<Interceptor<T, ?>>> interceptors, InterceptorKind interceptorKind) Resolves method interceptors for the given method.
-
Field Details
-
ARGUMENT
Constant for bean lookup.
-
-
Method Details
-
resolveInterceptors
<T> Interceptor<T,?>[] resolveInterceptors(Executable<T, ?> method, Collection<BeanRegistration<Interceptor<T, ?>>> interceptors, InterceptorKind interceptorKind) Resolves method interceptors for the given method.- Type Parameters:
T- the bean type- Parameters:
method- The method interceptorsinterceptors- The pre-resolved interceptorsinterceptorKind- The interceptor kind- Returns:
- An array of interceptors
-
resolveConstructorInterceptors
<T> Interceptor<T,T>[] resolveConstructorInterceptors(BeanConstructor<T> constructor, Collection<BeanRegistration<Interceptor<T, T>>> interceptors) Resolves interceptors for the given constructor.- Type Parameters:
T- The bean type- Parameters:
constructor- The constructorinterceptors- The pre-resolved interceptors- Returns:
- An array of interceptors
-