|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter
public abstract class AbstractTypeHierarchyTraversingFilter
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 a succeed-fast strategy: if at any time a match is declared, no further processing is carried out.
Field Summary | |
---|---|
private boolean |
considerInherited
|
private boolean |
considerInterfaces
|
Constructor Summary | |
---|---|
protected |
AbstractTypeHierarchyTraversingFilter(boolean considerInherited,
boolean considerInterfaces)
|
Method Summary | |
---|---|
boolean |
match(MetadataReader metadataReader,
MetadataReaderFactory metadataReaderFactory)
Determine whether this filter matches for the class described by the given metadata. |
private boolean |
match(java.lang.String className,
MetadataReaderFactory metadataReaderFactory)
|
protected boolean |
matchClassName(java.lang.String className)
Override this to match on type name. |
protected java.lang.Boolean |
matchInterface(java.lang.String interfaceNames)
Override this to match on interface type name. |
protected boolean |
matchSelf(MetadataReader metadataReader)
Override this to match self characteristics alone. |
protected java.lang.Boolean |
matchSuperClass(java.lang.String superClassName)
Override this to match on super type name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final boolean considerInherited
private final boolean considerInterfaces
Constructor Detail |
---|
protected AbstractTypeHierarchyTraversingFilter(boolean considerInherited, boolean considerInterfaces)
Method Detail |
---|
public boolean match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) throws java.io.IOException
TypeFilter
match
in interface TypeFilter
metadataReader
- the metadata reader for the target classmetadataReaderFactory
- a factory for obtaining metadata readers
for other classes (such as superclasses and interfaces)
java.io.IOException
- in case of I/O failure when reading metadataprivate boolean match(java.lang.String className, MetadataReaderFactory metadataReaderFactory) throws java.io.IOException
java.io.IOException
protected boolean matchSelf(MetadataReader metadataReader)
protected boolean matchClassName(java.lang.String className)
protected java.lang.Boolean matchSuperClass(java.lang.String superClassName)
protected java.lang.Boolean matchInterface(java.lang.String interfaceNames)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |