|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter
org.springframework.core.type.filter.AnnotationTypeFilter
public class AnnotationTypeFilter
A simple filter which matches classes with a given annotation, checking inherited annotations as well.
The matching logic mirrors that of Class.isAnnotationPresent().
| Constructor Summary | |
|---|---|
AnnotationTypeFilter(Class<? extends Annotation> annotationType)
Create a new AnnotationTypeFilter for the given annotation type. |
|
AnnotationTypeFilter(Class<? extends Annotation> annotationType,
boolean considerMetaAnnotations)
Create a new AnnotationTypeFilter for the given annotation type. |
|
AnnotationTypeFilter(Class<? extends Annotation> annotationType,
boolean considerMetaAnnotations,
boolean considerInterfaces)
Create a new AnnotationTypeFilter for the given annotation type. |
|
| Method Summary | |
|---|---|
protected boolean |
matchSelf(MetadataReader metadataReader)
Override this to match self characteristics alone. |
protected Boolean |
matchSuperClass(String superClassName)
Override this to match on super type name. |
| Methods inherited from class org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter |
|---|
match, matchClassName, matchInterface |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationTypeFilter(Class<? extends Annotation> annotationType)
considerMetaAnnotations' argument. The filter will
not match interfaces.
annotationType - the annotation type to match
public AnnotationTypeFilter(Class<? extends Annotation> annotationType,
boolean considerMetaAnnotations)
annotationType - the annotation type to matchconsiderMetaAnnotations - whether to also match on meta-annotations
public AnnotationTypeFilter(Class<? extends Annotation> annotationType,
boolean considerMetaAnnotations,
boolean considerInterfaces)
AnnotationTypeFilter for the given annotation type.
annotationType - the annotation type to matchconsiderMetaAnnotations - whether to also match on meta-annotationsconsiderInterfaces - whether to also match interfaces| Method Detail |
|---|
protected boolean matchSelf(MetadataReader metadataReader)
AbstractTypeHierarchyTraversingFilter
matchSelf in class AbstractTypeHierarchyTraversingFilterprotected Boolean matchSuperClass(String superClassName)
AbstractTypeHierarchyTraversingFilter
matchSuperClass in class AbstractTypeHierarchyTraversingFilter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||