public class EntityScanner extends Object
@EntityScan
specified packages.Constructor and Description |
---|
EntityScanner(org.springframework.context.ApplicationContext context)
Create a new
EntityScanner instance. |
Modifier and Type | Method and Description |
---|---|
Set<Class<?>> |
scan(Class<? extends Annotation>... annotationTypes)
Scan for entities with the specified annotations.
|
public EntityScanner(org.springframework.context.ApplicationContext context)
EntityScanner
instance.context
- the source application context@SafeVarargs public final Set<Class<?>> scan(Class<? extends Annotation>... annotationTypes) throws ClassNotFoundException
annotationTypes
- the annotation types used on the entitiesClassNotFoundException
- if an entity class cannot be loadedCopyright © 2017 Pivotal Software, Inc.. All rights reserved.