Class InterceptedMethodUtil


  • @Internal
    public final class InterceptedMethodUtil
    extends java.lang.Object
    The InterceptedMethod utils class.
    Since:
    2.1.0
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean hasAroundStereotype​(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
      Does the given metadata have AOP advice declared.
      static boolean hasDeclaredAroundAdvice​(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
      Does the given metadata have declared AOP advice.
      static InterceptedMethod of​(MethodInvocationContext<?,​?> context)
      Find possible InterceptedMethod implementation.
      static io.micronaut.core.annotation.AnnotationValue<?>[] resolveInterceptorBinding​(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, InterceptorKind interceptorKind)
      Resolve interceptor binding annotations from the metadata.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • resolveInterceptorBinding

        public static io.micronaut.core.annotation.AnnotationValue<?>[] resolveInterceptorBinding​(io.micronaut.core.annotation.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
                                                  io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
        Does the given metadata have AOP advice declared.
        Parameters:
        annotationMetadata - The annotation metadata
        Returns:
        True if it does
      • hasDeclaredAroundAdvice

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