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
(@Nullable AnnotationMetadata annotationMetadata) Does the given metadata have AOP advice declared.static boolean
hasDeclaredAroundAdvice
(@Nullable AnnotationMetadata annotationMetadata) Does the given metadata have declared AOP advice.static boolean
hasIntroductionStereotype
(@Nullable AnnotationMetadata annotationMetadata) Does the given metadata have introduction declared.static @NonNull InterceptedMethod
of
(@NonNull MethodInvocationContext<?, ?> context, @NonNull 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 @NonNull InterceptedMethod of(@NonNull @NonNull MethodInvocationContext<?, ?> context, @NonNull @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
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
-