Class InterceptedMethodUtil
- java.lang.Object
-
- io.micronaut.aop.internal.intercepted.InterceptedMethodUtil
-
@Internal public final class InterceptedMethodUtil extends java.lang.ObjectTheInterceptedMethodutils class.- Since:
- 2.1.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanhasAroundStereotype(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)Does the given metadata have AOP advice declared.static booleanhasDeclaredAroundAdvice(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)Does the given metadata have declared AOP advice.static InterceptedMethodof(MethodInvocationContext<?,?> context)Find possibleInterceptedMethodimplementation.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 possibleInterceptedMethodimplementation.- 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
-
-