java.lang.Object | ||
↳ | org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter | |
↳ | org.springframework.core.type.filter.AnnotationTypeFilter |
A simple filter which matches classes with a given annotation, checking inherited annotations as well.
The matching logic mirrors that of Class.isAnnotationPresent()
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new AnnotationTypeFilter for the given annotation type.
| |||||||||||
Create a new AnnotationTypeFilter for the given annotation type.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Override this to match self characteristics alone.
| |||||||||||
Override this to match on super type name.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.core.type.filter.TypeFilter
|
Create a new AnnotationTypeFilter for the given annotation type.
This filter will also match meta-annotations. To disable the
meta-annotation matching, use the constructor that accepts a
'considerMetaAnnotations
' argument.
annotationType | the annotation type to match |
---|
Create a new AnnotationTypeFilter for the given annotation type.
annotationType | the annotation type to match |
---|---|
considerMetaAnnotations | whether to also match on meta-annotations |
Override this to match self characteristics alone. Typically, the implementation will use a visitor to extract information to perform matching.
Override this to match on super type name.