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
ConstructorDescriptionAssignableTypeFilter
(Class<?> targetType) Create a new AssignableTypeFilter for the given type. -
Method Summary
Modifier and TypeMethodDescriptionfinal Class<?>
Return thetype
that this instance is using to filter candidates.protected boolean
matchClassName
(String className) Override this to match on type name.protected Boolean
matchInterface
(String interfaceName) Override this to match on interface type name.protected Boolean
matchSuperClass
(String superClassName) Override this to match on supertype name.protected Boolean
matchTargetType
(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 thetype
that this instance is using to filter candidates.- Since:
- 5.0
-
matchClassName
Description copied from class:AbstractTypeHierarchyTraversingFilter
Override this to match on type name.- Overrides:
matchClassName
in classAbstractTypeHierarchyTraversingFilter
-
matchSuperClass
Description copied from class:AbstractTypeHierarchyTraversingFilter
Override this to match on supertype name.- Overrides:
matchSuperClass
in classAbstractTypeHierarchyTraversingFilter
-
matchInterface
Description copied from class:AbstractTypeHierarchyTraversingFilter
Override this to match on interface type name.- Overrides:
matchInterface
in classAbstractTypeHierarchyTraversingFilter
-
matchTargetType
-