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

forClassAnnotation

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

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

Parameters

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

Return
the corresponding AnnotationMatchingPointcut