当前页面:
在线文档首页 >
Spring Framework 2.1.0 API 文档英文版
AnnotationTypeFilter (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版
org.springframework.core.typefilter
Class AnnotationTypeFilter
java.lang.Object
org.springframework.core.typefilter.AbstractTypeHierarchyTraversingFilter
org.springframework.core.typefilter.AnnotationTypeFilter
- All Implemented Interfaces:
- TypeFilter
public class AnnotationTypeFilter
- extends AbstractTypeHierarchyTraversingFilter
Matches classes with a given annotation optionally including inherited annotations.
The matching logic mirrors that of Class.isAnnotationPresent() with an additional option
to explicitely control if any inherited annotatins should be considered.
- Since:
- 2.1
- Author:
- Mark Fisher, Ramnivas Laddad
Fields inherited from interface org.springframework.core.typefilter.TypeFilter |
TRUE |
Method Summary |
protected boolean |
matchSelf(org.objectweb.asm.ClassReader classReader)
Override this to match self characterisitcs alone. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationTypeFilter
public AnnotationTypeFilter(Class<? extends Annotation> annotationClass,
boolean considerInherited)
- Parameters:
annotationClass
- The annotation to matchconsiderInherited
- search inheritance hierarchy for the annotation
AnnotationTypeFilter
public AnnotationTypeFilter(Class<? extends Annotation> annotationClass)
- Parameters:
annotationClass
- The annotation to match
matchSelf
protected boolean matchSelf(org.objectweb.asm.ClassReader classReader)
- Description copied from class:
AbstractTypeHierarchyTraversingFilter
- Override this to match self characterisitcs alone. Typically,
the implementation will use a visitor to extract information
to perform matching.
- Overrides:
matchSelf
in class AbstractTypeHierarchyTraversingFilter
Copyright © 2002-2007 The Spring Framework.