public class AnnotationMatchingPointcut extends java.lang.Object implements Pointcut
AnnotationClassFilter,
AnnotationMethodMatcher| Constructor and Description |
|---|
AnnotationMatchingPointcut(java.lang.Class<? extends java.lang.annotation.Annotation> classAnnotationType)
Create a new AnnotationMatchingPointcut for the given annotation type.
|
AnnotationMatchingPointcut(java.lang.Class<? extends java.lang.annotation.Annotation> classAnnotationType,
boolean checkInherited)
Create a new AnnotationMatchingPointcut for the given annotation type.
|
AnnotationMatchingPointcut(java.lang.Class<? extends java.lang.annotation.Annotation> classAnnotationType,
java.lang.Class<? extends java.lang.annotation.Annotation> methodAnnotationType)
Create a new AnnotationMatchingPointcut for the given annotation type.
|
| Modifier and Type | Method and Description |
|---|---|
static AnnotationMatchingPointcut |
forClassAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Factory method for an AnnotationMatchingPointcut that matches
for the specified annotation at the class level.
|
static AnnotationMatchingPointcut |
forMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Factory method for an AnnotationMatchingPointcut that matches
for the specified annotation at the method level.
|
ClassFilter |
getClassFilter()
Return the ClassFilter for this pointcut.
|
MethodMatcher |
getMethodMatcher()
Return the MethodMatcher for this pointcut.
|
public AnnotationMatchingPointcut(java.lang.Class<? extends java.lang.annotation.Annotation> classAnnotationType)
classAnnotationType - the annotation type to look for at the class levelpublic AnnotationMatchingPointcut(java.lang.Class<? extends java.lang.annotation.Annotation> classAnnotationType,
boolean checkInherited)
classAnnotationType - the annotation type to look for at the class levelcheckInherited - whether to explicitly check the superclasses and
interfaces for the annotation type as well (even if the annotation type
is not marked as inherited itself)public AnnotationMatchingPointcut(java.lang.Class<? extends java.lang.annotation.Annotation> classAnnotationType,
java.lang.Class<? extends java.lang.annotation.Annotation> methodAnnotationType)
classAnnotationType - the annotation type to look for at the class level
(can be null)methodAnnotationType - the annotation type to look for at the method level
(can be null)public ClassFilter getClassFilter()
PointcutgetClassFilter in interface Pointcutnull)public MethodMatcher getMethodMatcher()
PointcutgetMethodMatcher in interface Pointcutnull)public static AnnotationMatchingPointcut forClassAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType - the annotation type to look for at the class levelpublic static AnnotationMatchingPointcut forMethodAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType - the annotation type to look for at the method level