spring-framework / org.springframework.aop.support.annotation / AnnotationMatchingPointcut / forMethodAnnotation

forMethodAnnotation

open static fun forMethodAnnotation(annotationType: Class<out Annotation>): AnnotationMatchingPointcut

Factory method for an AnnotationMatchingPointcut that matches for the specified annotation at the method level.

Parameters

annotationType - the annotation type to look for at the method level

Return
the corresponding AnnotationMatchingPointcut