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 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- TheMethodInvocationContextconversionService- 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
public 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
-
hasIntroductionStereotype
public static boolean hasIntroductionStereotype(@Nullable @Nullable AnnotationMetadata annotationMetadata) Does the given metadata have introduction declared.- Parameters:
annotationMetadata- The annotation metadata- Returns:
- True if it does
-
hasDeclaredAroundAdvice
public 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
-