Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @ComponentScan annotation [SPR-7194] #11848

Closed
spring-issuemaster opened this issue May 12, 2010 · 3 comments
Closed

Add @ComponentScan annotation [SPR-7194] #11848

spring-issuemaster opened this issue May 12, 2010 · 3 comments

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented May 12, 2010

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:

  • #12078 Support Java-Based Application Configuration
  • #12956 Allow recursive use of @ComponentScan
  • #12794 Introduce ComponentScanSpec for ComponentScanBeanDefinitionParser (context:component-scan) ("supersedes")

13 votes, 9 watchers

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented May 12, 2010

Baruch Sadogursky commented

There are other features of JavaConfig project missing as well - @AspectJAutoProxy, @AnnotationDrivenTx. It would be nice to have them back too.

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Jan 10, 2011

Chris Beams commented

This work is underway and should be merged into trunk shortly. See #12078 for an overarching issue that tracks other such changes e.g., annotation support for AspectJ auto-proxying, etc.

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Mar 10, 2011

Chris Beams commented

A @ComponentScan annotation was added in Spring 3.1 M1 as a declarative alternative to the new ComponentScanSpec implementation of FeatureSpecification. See Javadoc for usage instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.