Spring Data Core

org.springframework.data.util
Class AnnotatedTypeScanner

java.lang.Object
  extended by org.springframework.data.util.AnnotatedTypeScanner

public class AnnotatedTypeScanner
extends Object

Scanner to find types with annotations on the classpath.

Author:
Oliver Gierke

Constructor Summary
AnnotatedTypeScanner(boolean considerInterfaces, Class<? extends Annotation>... annotationTypes)
          Creates a new AnnotatedTypeScanner for the given annotation types.
AnnotatedTypeScanner(Class<? extends Annotation>... annotationTypes)
          Creates a new AnnotatedTypeScanner for the given annotation types.
 
Method Summary
 Set<Class<?>> findTypes(Iterable<String> basePackages)
           
 Set<Class<?>> findTypes(String... basePackages)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedTypeScanner

public AnnotatedTypeScanner(Class<? extends Annotation>... annotationTypes)
Creates a new AnnotatedTypeScanner for the given annotation types.

Parameters:
annotationTypes - the annotation types to scan for.

AnnotatedTypeScanner

public AnnotatedTypeScanner(boolean considerInterfaces,
                            Class<? extends Annotation>... annotationTypes)
Creates a new AnnotatedTypeScanner for the given annotation types.

Parameters:
considerInterfaces - whether to consider interfaces as well.
annotationTypes - the annotations to scan for.
Method Detail

findTypes

public Set<Class<?>> findTypes(String... basePackages)

findTypes

public Set<Class<?>> findTypes(Iterable<String> basePackages)

Spring Data Core

Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.