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

AnnotationMatchingPointcut

open class AnnotationMatchingPointcut : Pointcut

Simple Pointcut that looks for a specific Java 5 annotation being present on a class or method.

Author
Juergen Hoeller

Since
2.0

See Also
AnnotationClassFilterAnnotationMethodMatcher

Constructors

<init>

AnnotationMatchingPointcut(classAnnotationType: Class<out Annotation>)
AnnotationMatchingPointcut(classAnnotationType: Class<out Annotation>, checkInherited: Boolean)
AnnotationMatchingPointcut(classAnnotationType: Class<out Annotation>, methodAnnotationType: Class<out Annotation>)
AnnotationMatchingPointcut(classAnnotationType: Class<out Annotation>, methodAnnotationType: Class<out Annotation>, checkInherited: Boolean)

Create a new AnnotationMatchingPointcut for the given annotation type.

Functions

equals

open fun equals(other: Any?): Boolean

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.

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.

getClassFilter

open fun getClassFilter(): ClassFilter

getMethodMatcher

open fun getMethodMatcher(): MethodMatcher

hashCode

open fun hashCode(): Int

toString

open fun toString(): String