Class TypeFilterParser

java.lang.Object
org.springframework.data.config.TypeFilterParser

public class TypeFilterParser extends Object
Parser to populate the given ClassPathScanningCandidateComponentProvider with TypeFilters parsed from the given Element's children.
Author:
Oliver Gierke
  • Constructor Details

    • TypeFilterParser

      public TypeFilterParser(org.springframework.beans.factory.xml.XmlReaderContext readerContext)
      Creates a new TypeFilterParser with the given ReaderContext.
      Parameters:
      readerContext - must not be null.
  • Method Details

    • parseTypeFilters

      public Collection<org.springframework.core.type.filter.TypeFilter> parseTypeFilters(Element element, TypeFilterParser.Type type)
      Returns all TypeFilter declared in nested elements of the given Element. Allows to selectively retrieve including or excluding filters based on the given TypeFilterParser.Type.
      Parameters:
      element - must not be null.
      type - must not be null.
      Returns:
    • createTypeFilter

      protected org.springframework.core.type.filter.TypeFilter createTypeFilter(Element element, ClassLoader classLoader)
      Creates a TypeFilter instance from the given Element and ClassLoader.
      Parameters:
      element - must not be null.
      classLoader - must not be null.
      Returns: