org.springframework.core.type.filter

Class AssignableTypeFilter

  • All Implemented Interfaces:
    TypeFilter


    public class AssignableTypeFilter
    extends AbstractTypeHierarchyTraversingFilter
    A simple filter which matches classes that are assignable to a given type.
    Since:
    2.5
    Author:
    Rod Johnson, Mark Fisher, Ramnivas Laddad
    • Constructor Summary

      Constructors 
      Constructor and Description
      AssignableTypeFilter(java.lang.Class<?> targetType)
      Create a new AssignableTypeFilter for the given type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Class<?> getTargetType()
      Return the type that this instance is using to filter candidates.
      protected boolean matchClassName(java.lang.String className)
      Override this to match on type name.
      protected java.lang.Boolean matchInterface(java.lang.String interfaceName)
      Override this to match on interface type name.
      protected java.lang.Boolean matchSuperClass(java.lang.String superClassName)
      Override this to match on super type name.
      protected java.lang.Boolean matchTargetType(java.lang.String typeName) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait