public class AnnotationClassFilter extends Object implements ClassFilter
AnnotationMatchingPointcutTRUE| 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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
matches(Class<?> clazz)
Should the pointcut apply to the given interface or target class?
|
String |
toString() |
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)
ClassFiltermatches in interface ClassFilterclazz - the candidate target class