Class InterceptedMethodUtil
java.lang.Object
io.micronaut.aop.internal.intercepted.InterceptedMethodUtil
The 
InterceptedMethod utils class.- Since:
- 2.1.0
- Author:
- Denis Stepanov
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanhasAroundStereotype(@Nullable AnnotationMetadata annotationMetadata) Does the given metadata have AOP advice declared.static booleanhasDeclaredAroundAdvice(@Nullable AnnotationMetadata annotationMetadata) Does the given metadata have declared AOP advice.static booleanhasIntroductionStereotype(@Nullable AnnotationMetadata annotationMetadata) Does the given metadata have introduction declared.static @NonNull InterceptedMethodof(@NonNull MethodInvocationContext<?, ?> context, @NonNull ConversionService conversionService) Find possibleInterceptedMethodimplementation.static AnnotationValue<?>[]resolveInterceptorBinding(AnnotationMetadata annotationMetadata, InterceptorKind interceptorKind) Resolve interceptor binding annotations from the metadata.
- 
Method Details- 
of@NonNull public static @NonNull InterceptedMethod of(@NonNull @NonNull MethodInvocationContext<?, ?> context, @NonNull @NonNull ConversionService conversionService) Find possibleInterceptedMethodimplementation.- Parameters:
- context- The- MethodInvocationContext
- conversionService- The- ConversionService
- Returns:
- The InterceptedMethod
- Since:
- 4.0.0
 
- 
resolveInterceptorBindingpublic 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
 
- 
hasAroundStereotypepublic static boolean hasAroundStereotype(@Nullable @Nullable AnnotationMetadata annotationMetadata) Does the given metadata have AOP advice declared.- Parameters:
- annotationMetadata- The annotation metadata
- Returns:
- True if it does
 
- 
hasIntroductionStereotypepublic static boolean hasIntroductionStereotype(@Nullable @Nullable AnnotationMetadata annotationMetadata) Does the given metadata have introduction declared.- Parameters:
- annotationMetadata- The annotation metadata
- Returns:
- True if it does
 
- 
hasDeclaredAroundAdvicepublic static boolean hasDeclaredAroundAdvice(@Nullable @Nullable AnnotationMetadata annotationMetadata) Does the given metadata have declared AOP advice.- Parameters:
- annotationMetadata- The annotation metadata
- Returns:
- True if it does
 
 
-