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 Details

  • 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 interceptors
      interceptors - The pre-resolved interceptors
      interceptorKind - 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 constructor
      interceptors - The pre-resolved interceptors
      Returns:
      An array of interceptors