public class GrailsComponentScanPackages extends Object
Class for storing GrailsComponentScan specified packages for reference later (e.g. by @GrailsApplicationPostProcessor).
| Modifiers | Name | Description |
|---|---|---|
static class |
GrailsComponentScanPackages.Registrar |
ImportBeanDefinitionRegistrar to store the base package from the importing configuration. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static GrailsComponentScanPackages |
get(BeanFactory beanFactory)Return the GrailsComponentScanPackages for the given bean factory. |
|
public List<String> |
getPackageNames()Return the package names specified from all GrailsComponentScan annotations. |
|
public static void |
register(BeanDefinitionRegistry registry, String packageNames)Register the specified entity scan packages with the system. |
|
public static void |
register(BeanDefinitionRegistry registry, Collection<String> packageNames)Register the specified entity scan packages with the system. |
Return the GrailsComponentScanPackages for the given bean factory.
beanFactory - the source bean factorynull)Return the package names specified from all GrailsComponentScan annotations.
Register the specified entity scan packages with the system.
registry - the source registrypackageNames - the package names to registerRegister the specified entity scan packages with the system.
registry - the source registrypackageNames - the package names to register