org.springframework.data.util
Class AnnotatedTypeScanner
java.lang.Object
org.springframework.data.util.AnnotatedTypeScanner
public class AnnotatedTypeScanner
- extends Object
Scanner to find types with annotations on the classpath.
- Author:
- Oliver Gierke
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
findTypes
public Set<Class<?>> findTypes(String... basePackages)
findTypes
public Set<Class<?>> findTypes(Iterable<String> basePackages)
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.