Package org.springframework.data.config
Class TypeFilterParser
java.lang.Object
org.springframework.data.config.TypeFilterParser
Parser to populate the given
ClassPathScanningCandidateComponentProvider with TypeFilters parsed from
the given Element's children.- Author:
- Oliver Gierke
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTypeFilterParser(org.springframework.beans.factory.xml.XmlReaderContext readerContext) Creates a newTypeFilterParserwith the givenReaderContext. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.core.type.filter.TypeFiltercreateTypeFilter(Element element, ClassLoader classLoader) Collection<org.springframework.core.type.filter.TypeFilter>parseTypeFilters(Element element, TypeFilterParser.Type type) Returns allTypeFilterdeclared in nested elements of the givenElement.
-
Constructor Details
-
TypeFilterParser
public TypeFilterParser(org.springframework.beans.factory.xml.XmlReaderContext readerContext) Creates a newTypeFilterParserwith the givenReaderContext.- Parameters:
readerContext- must not be null.
-
-
Method Details
-
parseTypeFilters
public Collection<org.springframework.core.type.filter.TypeFilter> parseTypeFilters(Element element, TypeFilterParser.Type type) Returns allTypeFilterdeclared in nested elements of the givenElement. Allows to selectively retrieve including or excluding filters based on the givenTypeFilterParser.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) - Parameters:
element- must not be null.classLoader- must not be null.- Returns:
-