Spring Data Core

org.springframework.data.config
Class TypeFilterParser

java.lang.Object
  extended by 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

Nested Class Summary
static class TypeFilterParser.Type
           
 
Constructor Summary
TypeFilterParser(XmlReaderContext readerContext)
          Creates a new TypeFilterParser with the given ReaderContext.
 
Method Summary
protected  TypeFilter createTypeFilter(Element element, ClassLoader classLoader)
          Createsa a TypeFilter instance from the given Element and ClassLoader.
 Iterable<TypeFilter> parseTypeFilters(Element element, TypeFilterParser.Type type)
          Returns all TypeFilter declared in nested elements of the given Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeFilterParser

public TypeFilterParser(XmlReaderContext readerContext)
Creates a new TypeFilterParser with the given ReaderContext.

Parameters:
readerContext - must not be null.
Method Detail

parseTypeFilters

public Iterable<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 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:

Spring Data Core

Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.