Class GrailsComponentScanPackages

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  GrailsComponentScanPackages.Registrar
      ImportBeanDefinitionRegistrar to store the base package from the importing configuration.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static GrailsComponentScanPackages get​(org.springframework.beans.factory.BeanFactory beanFactory)
      Return the GrailsComponentScanPackages for the given bean factory.
      java.util.List<java.lang.String> getPackageNames()
      Return the package names specified from all @GrailsComponentScan annotations.
      static void register​(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, java.lang.String... packageNames)
      Register the specified entity scan packages with the system.
      static void register​(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, java.util.Collection<java.lang.String> packageNames)
      Register the specified entity scan packages with the system.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getPackageNames

        public java.util.List<java.lang.String> getPackageNames()
        Return the package names specified from all @GrailsComponentScan annotations.
        Returns:
        the component scan package names
      • register

        public static void register​(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
                                    java.lang.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​(org.springframework.beans.factory.support.BeanDefinitionRegistry registry,
                                    java.util.Collection<java.lang.String> packageNames)
        Register the specified entity scan packages with the system.
        Parameters:
        registry - the source registry
        packageNames - the package names to register