public class GrailsComponentScanPostProcessor extends java.lang.Object implements BeanDefinitionRegistryPostProcessor
Scans the packages named by grails.spring.bean.packages for annotated components.
This is the programmatic equivalent of the grailsContext:component-scan element
that ClosureClassIgnoringComponentScanBeanDefinitionParser serves, so the scan can
be contributed without the XML namespace handler and therefore without the bean builder
DSL. The two share their behaviour: class files whose name contains $ are skipped,
because a Groovy closure compiles to a class that is never a component candidate, and any
TypeFilter the plugin manager contributes is applied as an include filter.
| Constructor and description |
|---|
GrailsComponentScanPostProcessor(java.util.List<java.lang.String> packagesToScan, GrailsPluginManager pluginManager) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
match(java.lang.String pattern, java.lang.String path) |
|
public void |
postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) |
|
public void |
postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |