Package org.springframework.data.util
Class AnnotatedTypeScanner
java.lang.Object
org.springframework.data.util.AnnotatedTypeScanner
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.EnvironmentAware,org.springframework.context.ResourceLoaderAware
public class AnnotatedTypeScanner
extends Object
implements org.springframework.context.ResourceLoaderAware, org.springframework.context.EnvironmentAware
Scanner to find types with annotations on the classpath.
- Author:
- Oliver Gierke, Christoph Strobl, Johannes Englmeier
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotatedTypeScanner(boolean considerInterfaces, Class<? extends Annotation>... annotationTypes) Creates a newAnnotatedTypeScannerfor the given annotation types.AnnotatedTypeScanner(boolean considerInterfaces, Collection<Class<? extends Annotation>> annotationTypes) AnnotatedTypeScanner(Class<? extends Annotation>... annotationTypes) Creates a newAnnotatedTypeScannerfor the given annotation types. -
Method Summary
-
Constructor Details
-
AnnotatedTypeScanner
Creates a newAnnotatedTypeScannerfor the given annotation types.- Parameters:
annotationTypes- the annotation types to scan for.
-
AnnotatedTypeScanner
@SafeVarargs public AnnotatedTypeScanner(boolean considerInterfaces, Class<? extends Annotation>... annotationTypes) Creates a newAnnotatedTypeScannerfor the given annotation types.- Parameters:
considerInterfaces- whether to consider interfaces as well.annotationTypes- the annotations to scan for.
-
AnnotatedTypeScanner
public AnnotatedTypeScanner(boolean considerInterfaces, Collection<Class<? extends Annotation>> annotationTypes) - Parameters:
considerInterfaces-annotationTypes-- Since:
- 3.0
-
-
Method Details
-
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) - Specified by:
setResourceLoaderin interfaceorg.springframework.context.ResourceLoaderAware
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
findTypes
-
findTypes
-