Class InterceptedMethodUtil
- java.lang.Object
-
- io.micronaut.aop.internal.intercepted.InterceptedMethodUtil
-
@Internal public final class InterceptedMethodUtil extends java.lang.Object
TheInterceptedMethod
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 possibleInterceptedMethod
implementation.static io.micronaut.core.annotation.AnnotationValue<?>[]
resolveInterceptorBinding(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, InterceptorKind interceptorKind)
Resolve interceptor binding annotations from the metadata.
-
-
-
Method Detail
-
of
public static InterceptedMethod of(MethodInvocationContext<?,?> context)
Find possibleInterceptedMethod
implementation.- Parameters:
context
- TheMethodInvocationContext
- Returns:
- The
InterceptedMethod
-
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 metadatainterceptorKind
- 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
-
-