private static class AnnotationMatchingPointcut.AnnotationCandidateClassFilter extends java.lang.Object implements ClassFilter
ClassFilter
that delegates to AnnotationUtils.isCandidateClass(java.lang.Class<?>, java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>>)
for filtering classes whose methods are not worth searching to begin with.Modifier and Type | Field and Description |
---|---|
private java.lang.Class<? extends java.lang.annotation.Annotation> |
annotationType |
TRUE
Constructor and Description |
---|
AnnotationCandidateClassFilter(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.Class<?> clazz)
Should the pointcut apply to the given interface or target class?
|
private final java.lang.Class<? extends java.lang.annotation.Annotation> annotationType
public AnnotationCandidateClassFilter(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
public boolean matches(java.lang.Class<?> clazz)
ClassFilter
matches
in interface ClassFilter
clazz
- the candidate target class