Class EntityScanPackages

java.lang.Object
org.springframework.boot.autoconfigure.domain.EntityScanPackages

public class EntityScanPackages extends Object
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 Details

    • getPackageNames

      public List<String> getPackageNames()
      Return the package names specified from all @EntityScan annotations.
      Returns:
      the entity scan package names
    • get

      public static EntityScanPackages get(BeanFactory beanFactory)
      Return the EntityScanPackages for the given bean factory.
      Parameters:
      beanFactory - the source bean factory
      Returns:
      the EntityScanPackages for the bean factory (never null)
    • register

      public static void register(BeanDefinitionRegistry registry, String... packageNames)
      Register the specified entity scan packages with the system.
      Parameters:
      registry - the source registry
      packageNames - the package names to register
    • register

      public static void register(BeanDefinitionRegistry registry, Collection<String> packageNames)
      Register the specified entity scan packages with the system.
      Parameters:
      registry - the source registry
      packageNames - the package names to register