站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

AbstractTypeHierarchyTraversingFilter (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.core.typefilter
Class AbstractTypeHierarchyTraversingFilter

java.lang.Object
  extended by org.springframework.core.typefilter.AbstractTypeHierarchyTraversingFilter
All Implemented Interfaces:
TypeFilter
Direct Known Subclasses:
AnnotationTypeFilter, AssignableTypeFilter

public abstract class AbstractTypeHierarchyTraversingFilter
extends Object
implements TypeFilter

Type filter that is aware of traversing over hierarchy.

This filter is useful when matching needs to be made based on potentially the whole class/interface hierarchy. The algorithm employed uses succeed-fast strategy i.e. if at anytime a match is declared, no further processing is carried out.

Since:
2.1
Author:
Ramnivas Laddad

Field Summary
 
Fields inherited from interface org.springframework.core.typefilter.TypeFilter
TRUE
 
Constructor Summary
AbstractTypeHierarchyTraversingFilter(boolean considerInherited, boolean considerInterfaces)
           
 
Method Summary
 boolean match(org.objectweb.asm.ClassReader classReader)
           
protected  boolean matchClassName(String className)
          Override this to match on type name.
protected  boolean matchInterfaceName(String interfaceNames)
           
protected  boolean matchSelf(org.objectweb.asm.ClassReader classReader)
          Override this to match self characterisitcs alone.
protected  boolean matchSuperClassName(String superClassName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTypeHierarchyTraversingFilter

public AbstractTypeHierarchyTraversingFilter(boolean considerInherited,
                                             boolean considerInterfaces)
Method Detail

match

public boolean match(org.objectweb.asm.ClassReader classReader)
Specified by:
match in interface TypeFilter

matchSelf

protected boolean matchSelf(org.objectweb.asm.ClassReader classReader)
Override this to match self characterisitcs alone. Typically, the implementation will use a visitor to extract information to perform matching.


matchClassName

protected boolean matchClassName(String className)
Override this to match on type name.


matchSuperClassName

protected boolean matchSuperClassName(String superClassName)

matchInterfaceName

protected boolean matchInterfaceName(String interfaceNames)

The Spring Framework

Copyright © 2002-2007 The Spring Framework.