Class AssignableTypeFilter
java.lang.Object
org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter
org.springframework.core.type.filter.AssignableTypeFilter
- All Implemented Interfaces:
TypeFilter
A simple filter which matches classes that are assignable to a given type.
- Since:
- 2.5
- Author:
- Rod Johnson, Mark Fisher, Ramnivas Laddad
-
Field Summary
Fields inherited from class org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter
logger -
Constructor Summary
ConstructorsConstructorDescriptionAssignableTypeFilter(Class<?> targetType) Create a new AssignableTypeFilter for the given type. -
Method Summary
Modifier and TypeMethodDescriptionfinal Class<?>Return thetypethat this instance is using to filter candidates.protected booleanmatchClassName(String className) Override this to match on type name.protected BooleanmatchInterface(String interfaceName) Override this to match on interface type name.protected BooleanmatchSuperClass(String superClassName) Override this to match on super type name.protected BooleanmatchTargetType(String typeName) Methods inherited from class org.springframework.core.type.filter.AbstractTypeHierarchyTraversingFilter
match, matchSelf
-
Constructor Details
-
AssignableTypeFilter
Create a new AssignableTypeFilter for the given type.- Parameters:
targetType- the type to match
-
-
Method Details
-
getTargetType
Return thetypethat this instance is using to filter candidates.- Since:
- 5.0
-
matchClassName
Description copied from class:AbstractTypeHierarchyTraversingFilterOverride this to match on type name.- Overrides:
matchClassNamein classAbstractTypeHierarchyTraversingFilter
-
matchSuperClass
Description copied from class:AbstractTypeHierarchyTraversingFilterOverride this to match on super type name.- Overrides:
matchSuperClassin classAbstractTypeHierarchyTraversingFilter
-
matchInterface
Description copied from class:AbstractTypeHierarchyTraversingFilterOverride this to match on interface type name.- Overrides:
matchInterfacein classAbstractTypeHierarchyTraversingFilter
-
matchTargetType
-