Class InterceptedMethodUtil
java.lang.Object
io.micronaut.aop.internal.intercepted.InterceptedMethodUtil
The
InterceptedMethod
utils class.- Since:
- 2.1.0
- Author:
- Denis Stepanov
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
hasAroundStereotype
(AnnotationMetadata annotationMetadata) Does the given metadata have AOP advice declared.static boolean
hasDeclaredAroundAdvice
(AnnotationMetadata annotationMetadata) Does the given metadata have declared AOP advice.static boolean
hasIntroductionStereotype
(AnnotationMetadata annotationMetadata) Does the given metadata have introduction declared.static InterceptedMethod
of
(MethodInvocationContext<?, ?> context, ConversionService conversionService) Find possibleInterceptedMethod
implementation.static AnnotationValue<?>[]
resolveInterceptorBinding
(AnnotationMetadata annotationMetadata, InterceptorKind interceptorKind) Resolve interceptor binding annotations from the metadata.
-
Method Details
-
of
@NonNull public static InterceptedMethod of(@NonNull MethodInvocationContext<?, ?> context, @NonNull ConversionService conversionService) Find possibleInterceptedMethod
implementation.- Parameters:
context
- TheMethodInvocationContext
conversionService
- TheConversionService
- 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 metadatainterceptorKind
- The interceptor kind- Returns:
- the annotation values
-
hasAroundStereotype
Does the given metadata have AOP advice declared.- Parameters:
annotationMetadata
- The annotation metadata- Returns:
- True if it does
-
hasIntroductionStereotype
Does the given metadata have introduction declared.- Parameters:
annotationMetadata
- The annotation metadata- Returns:
- True if it does
-
hasDeclaredAroundAdvice
Does the given metadata have declared AOP advice.- Parameters:
annotationMetadata
- The annotation metadata- Returns:
- True if it does
-