public class EntityScanner extends Object
@EntityScan
specified packages.Constructor and Description |
---|
EntityScanner(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(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 © 2019 Pivotal Software, Inc.. All rights reserved.