Class InterceptedMethodUtil

java.lang.Object
io.micronaut.aop.internal.intercepted.InterceptedMethodUtil

@Internal public final class InterceptedMethodUtil extends Object
The InterceptedMethod utils class.
Since:
2.1.0
Author:
Denis Stepanov
  • Method Details

    • of

      @NonNull public static InterceptedMethod of(@NonNull MethodInvocationContext<?,?> context, @NonNull ConversionService conversionService)
      Find possible InterceptedMethod implementation.
      Parameters:
      context - The MethodInvocationContext
      conversionService - The ConversionService
      Returns:
      The InterceptedMethod
      Since:
      4.0.0
    • resolveInterceptorBinding

      public static AnnotationValue<?>[] resolveInterceptorBinding(AnnotationMetadata annotationMetadata, InterceptorKind interceptorKind)
      Resolve interceptor binding annotations from the metadata.
      Parameters:
      annotationMetadata - The annotation metadata
      interceptorKind - The interceptor kind
      Returns:
      the annotation values
    • hasAroundStereotype

      public static boolean hasAroundStereotype(@Nullable AnnotationMetadata annotationMetadata)
      Does the given metadata have AOP advice declared.
      Parameters:
      annotationMetadata - The annotation metadata
      Returns:
      True if it does
    • hasIntroductionStereotype

      public static boolean hasIntroductionStereotype(@Nullable AnnotationMetadata annotationMetadata)
      Does the given metadata have introduction declared.
      Parameters:
      annotationMetadata - The annotation metadata
      Returns:
      True if it does
    • hasDeclaredAroundAdvice

      public static boolean hasDeclaredAroundAdvice(@Nullable AnnotationMetadata annotationMetadata)
      Does the given metadata have declared AOP advice.
      Parameters:
      annotationMetadata - The annotation metadata
      Returns:
      True if it does