public class AnnotationClassFilter extends Object implements ClassFilter
AnnotationMatchingPointcutTRUE| 构造器和说明 |
|---|
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 also check the superclasses and
interfaces as well as meta-annotations for the annotation type
(i.e. whether to use AnnotationUtils.findAnnotation(Class, Class)
semantics instead of standard Java Class.isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation>))public boolean matches(Class<?> clazz)
ClassFiltermatches 在接口中 ClassFilterclazz - the candidate target class