Package grails.boot.config
Class GrailsComponentScanPackages
- java.lang.Object
-
- grails.boot.config.GrailsComponentScanPackages
-
public class GrailsComponentScanPackages extends java.lang.ObjectClass for storing@GrailsComponentScanspecified packages for reference later (e.g. by@GrailsApplicationPostProcessor).- Since:
- 2022.0.0
- See Also:
GrailsComponentScan,GrailsComponentScanner
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGrailsComponentScanPackages.RegistrarImportBeanDefinitionRegistrarto store the base package from the importing configuration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GrailsComponentScanPackagesget(org.springframework.beans.factory.BeanFactory beanFactory)Return theGrailsComponentScanPackagesfor the given bean factory.java.util.List<java.lang.String>getPackageNames()Return the package names specified from all@GrailsComponentScanannotations.static voidregister(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, java.lang.String... packageNames)Register the specified entity scan packages with the system.static voidregister(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, java.util.Collection<java.lang.String> packageNames)Register the specified entity scan packages with the system.
-
-
-
Method Detail
-
getPackageNames
public java.util.List<java.lang.String> getPackageNames()
Return the package names specified from all@GrailsComponentScanannotations.- Returns:
- the component scan package names
-
get
public static GrailsComponentScanPackages get(org.springframework.beans.factory.BeanFactory beanFactory)
Return theGrailsComponentScanPackagesfor the given bean factory.- Parameters:
beanFactory- the source bean factory- Returns:
- the
GrailsComponentScanPackagesfor the bean factory (nevernull)
-
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 registrypackageNames- 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 registrypackageNames- the package names to register
-
-