public class AnnotatedTypeScanner extends Object implements org.springframework.context.ResourceLoaderAware, org.springframework.context.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(org.springframework.core.env.Environment environment) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
public AnnotatedTypeScanner(Class<? extends Annotation>... annotationTypes)
AnnotatedTypeScanner for the given annotation types.annotationTypes - the annotation types to scan for.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(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader in interface org.springframework.context.ResourceLoaderAwarepublic void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment in interface org.springframework.context.EnvironmentAwareCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.