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(org.springframework.beans.factory.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(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
Collection<String> packageNames)
Register the specified entity scan packages with the system.
|
static void |
register(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
String... packageNames)
Register the specified entity scan packages with the system.
|
public List<String> getPackageNames()
@EntityScan
annotations.public static EntityScanPackages get(org.springframework.beans.factory.BeanFactory beanFactory)
EntityScanPackages
for the given bean factory.beanFactory
- the source bean factoryEntityScanPackages
for the bean factory (never null
)public static void register(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, String... packageNames)
registry
- the source registrypackageNames
- the package names to registerpublic static void register(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Collection<String> packageNames)
registry
- the source registrypackageNames
- the package names to registerCopyright © 2017 Pivotal Software, Inc.. All rights reserved.