java.lang.Object
com.blazebit.persistence.integration.view.spring.impl.TypeFilterParser

public class TypeFilterParser extends Object
I copied this from Spring Data because introducing a dependency to spring-data-commons is not an option since the blaze-persistence-entity-view-spring integration should be independent of Spring Data. Parser to populate the given ClassPathScanningCandidateComponentProvider with TypeFilters parsed from the given Element's children.
Since:
1.2.0
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)
      Createsa a TypeFilter instance from the given Element and ClassLoader.
      Parameters:
      element - must not be null.
      classLoader - must not be null.
      Returns: