Class EntityScanPackages
java.lang.Object
org.springframework.boot.autoconfigure.domain.EntityScanPackages
Class for storing
@EntityScan
specified packages for reference later
(e.g. by JPA auto-configuration).- Since:
- 1.4.0
- Author:
- Phillip Webb
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntityScanPackages
get
(BeanFactory beanFactory) Return theEntityScanPackages
for the given bean factory.Return the package names specified from all@EntityScan
annotations.static void
register
(BeanDefinitionRegistry registry, String... packageNames) Register the specified entity scan packages with the system.static void
register
(BeanDefinitionRegistry registry, Collection<String> packageNames) Register the specified entity scan packages with the system.
-
Method Details
-
getPackageNames
Return the package names specified from all@EntityScan
annotations.- Returns:
- the entity scan package names
-
get
Return theEntityScanPackages
for the given bean factory.- Parameters:
beanFactory
- the source bean factory- Returns:
- the
EntityScanPackages
for the bean factory (nevernull
)
-
register
Register the specified entity scan packages with the system.- Parameters:
registry
- the source registrypackageNames
- the package names to register
-
register
Register the specified entity scan packages with the system.- Parameters:
registry
- the source registrypackageNames
- the package names to register
-