org.springframework.boot.autoconfigure.domain

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:
    EntityScan, EntityScanner
    • Method Detail

      • getPackageNames

        public List<String> getPackageNames()
        Return the package names specified from all @EntityScan annotations.
        Returns:
        the entity scan package names
      • 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