public abstract class

AbstractTypeHierarchyTraversingFilter

extends Object
implements TypeFilter
java.lang.Object
   ↳ org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter
Known Direct Subclasses

Class Overview

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.

Summary

Protected Constructors
AbstractTypeHierarchyTraversingFilter(boolean considerInherited, boolean considerInterfaces)
Public Methods
boolean match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory)
Determine whether this filter matches for the class described by the given metadata.
Protected Methods
boolean matchClassName(String className)
Override this to match on type name.
Boolean matchInterface(String interfaceNames)
Override this to match on interface type name.
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 java.lang.Object
From interface org.springframework.core.type.filter.TypeFilter

Protected Constructors

protected AbstractTypeHierarchyTraversingFilter (boolean considerInherited, boolean considerInterfaces)

Also: SpringCore

Public Methods

public boolean match (MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory)

Also: SpringCore

Determine whether this filter matches for the class described by the given metadata.

Parameters
metadataReader the metadata reader for the target class
metadataReaderFactory a factory for obtaining metadata readers for other classes (such as superclasses and interfaces)
Returns
  • whether this filter matches
Throws
IOException

Protected Methods

protected boolean matchClassName (String className)

Also: SpringCore

Override this to match on type name.

protected Boolean matchInterface (String interfaceNames)

Also: SpringCore

Override this to match on interface type name.

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.