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 EntityScanPackagesget(BeanFactory beanFactory) Return theEntityScanPackagesfor the given bean factory.Return the package names specified from all@EntityScanannotations.static voidregister(BeanDefinitionRegistry registry, String... packageNames) Register the specified entity scan packages with the system.static voidregister(BeanDefinitionRegistry registry, Collection<String> packageNames) Register the specified entity scan packages with the system.
-
Method Details
-
getPackageNames
Return the package names specified from all@EntityScanannotations.- Returns:
- the entity scan package names
-
get
Return theEntityScanPackagesfor the given bean factory.- Parameters:
beanFactory- the source bean factory- Returns:
- the
EntityScanPackagesfor 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
-