public class AnnotatedTypeScanner extends Object implements ResourceLoaderAware, EnvironmentAware
| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
Set<Class<?>> |
findTypes(Iterable<String> basePackages) |
Set<Class<?>> |
findTypes(String... basePackages) |
void |
setEnvironment(Environment environment) |
void |
setResourceLoader(ResourceLoader resourceLoader) |
@SafeVarargs public AnnotatedTypeScanner(Class<? extends Annotation>... annotationTypes)
AnnotatedTypeScanner for the given annotation types.annotationTypes - the annotation types to scan for.@SafeVarargs public AnnotatedTypeScanner(boolean considerInterfaces, Class<? extends Annotation>... annotationTypes)
AnnotatedTypeScanner for the given annotation types.considerInterfaces - whether to consider interfaces as well.annotationTypes - the annotations to scan for.public void setResourceLoader(ResourceLoader resourceLoader)
setResourceLoader in interface ResourceLoaderAwarepublic void setEnvironment(Environment environment)
setEnvironment in interface EnvironmentAwareCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.