public class AnnotationClassFilter extends Object implements ClassFilter
AnnotationMatchingPointcut
TRUE
Constructor and Description |
---|
AnnotationClassFilter(Class<? extends Annotation> annotationType)
Create a new AnnotationClassFilter for the given annotation type.
|
AnnotationClassFilter(Class<? extends Annotation> annotationType,
boolean checkInherited)
Create a new AnnotationClassFilter for the given annotation type.
|
public AnnotationClassFilter(Class<? extends Annotation> annotationType)
annotationType
- the annotation type to look forpublic AnnotationClassFilter(Class<? extends Annotation> annotationType, boolean checkInherited)
annotationType
- the annotation type to look forcheckInherited
- 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 boolean matches(Class clazz)
ClassFilter
matches
in interface ClassFilter
clazz
- the candidate target class