public class EntityScanPackages extends Object
@EntityScan
specified packages for reference later
(e.g. by JPA auto-configuration).EntityScan
,
EntityScanner
Modifier and Type | Method and Description |
---|---|
static EntityScanPackages |
get(BeanFactory beanFactory)
Return the
EntityScanPackages for the given bean factory. |
List<String> |
getPackageNames()
Return the package names specified from all
@EntityScan
annotations. |
static void |
register(BeanDefinitionRegistry registry,
Collection<String> packageNames)
Register the specified entity scan packages with the system.
|
static void |
register(BeanDefinitionRegistry registry,
String... packageNames)
Register the specified entity scan packages with the system.
|
public List<String> getPackageNames()
@EntityScan
annotations.public static EntityScanPackages get(BeanFactory beanFactory)
EntityScanPackages
for the given bean factory.beanFactory
- the source bean factoryEntityScanPackages
for the bean factory (never null
)public static void register(BeanDefinitionRegistry registry, String... packageNames)
registry
- the source registrypackageNames
- the package names to registerpublic static void register(BeanDefinitionRegistry registry, Collection<String> packageNames)
registry
- the source registrypackageNames
- the package names to registerCopyright © 2019 Pivotal Software, Inc.. All rights reserved.