public class

AnnotationTypeFilter

extends AbstractTypeHierarchyTraversingFilter
java.lang.Object
   ↳ org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter
     ↳ org.springframework.core.type.filter.AnnotationTypeFilter

Class Overview

A simple filter which matches classes with a given annotation, checking inherited annotations as well.

The matching logic mirrors that of Class.isAnnotationPresent().

Summary

Public Constructors
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.
Protected Methods
boolean matchSelf(MetadataReader metadataReader)
Override this to match self characteristics alone.
Boolean matchSuperClass(String superClassName)
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

Public Constructors

public AnnotationTypeFilter (Class<? extends Annotation> annotationType)

Also: SpringCore

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.

Parameters
annotationType the annotation type to match

public AnnotationTypeFilter (Class<? extends Annotation> annotationType, boolean considerMetaAnnotations)

Also: SpringCore

Create a new AnnotationTypeFilter for the given annotation type.

Parameters
annotationType the annotation type to match
considerMetaAnnotations whether to also match on meta-annotations

Protected Methods

protected boolean matchSelf (MetadataReader metadataReader)

Also: SpringCore

Override this to match self characteristics alone. Typically, the implementation will use a visitor to extract information to perform matching.

protected Boolean matchSuperClass (String superClassName)

Also: SpringCore

Override this to match on super type name.