Closed
Description
Eric Sirianni opened SPR-7194 and commented
It would be useful to have the @ComponentScan
from JavaConfig in Spring core to enable programmatic component scanning. The workaround of using AnnotationConfigWebApplicationContext and setting "init-param" of "contextConfigLocation" is OK, but not a great long-term solution.
The referenced thread talks about porting some of the features of JavaConfig that didn't make it into Spring 3.0.
So hopefully the use-case is well appreciated - I'm just filing this bug for tracking purposes.
Affects: 3.0.2
Reference URL: http://forum.springsource.org/showthread.php?t=80761
Issue Links:
- Support Java-Based Application Configuration [SPR-7420] #12078 Support Java-Based Application Configuration
- Allow recursive use of @ComponentScan [SPR-8307] #12956 Allow recursive use of
@ComponentScan
- Introduce ComponentScanSpec for ComponentScanBeanDefinitionParser (context:component-scan) [SPR-8143] #12794 Introduce ComponentScanSpec for ComponentScanBeanDefinitionParser (context:component-scan) ("supersedes")
13 votes, 9 watchers