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-projects-issues opened this issue May 12, 2010 · 3 comments
Closed

Add @ComponentScan annotation [SPR-7194] #11848

spring-projects-issues opened this issue May 12, 2010 · 3 comments
Labels
has: votes-jira Issues migrated from JIRA with more than 10 votes at the time of import in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues 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:

13 votes, 9 watchers

@spring-projects-issues
Copy link
Collaborator Author

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-projects-issues
Copy link
Collaborator Author

spring-projects-issues 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-projects-issues
Copy link
Collaborator Author

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.

@spring-projects-issues spring-projects-issues added type: enhancement A general enhancement in: core Issues in core modules (aop, beans, core, context, expression) has: votes-jira Issues migrated from JIRA with more than 10 votes at the time of import labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.1 M1 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has: votes-jira Issues migrated from JIRA with more than 10 votes at the time of import in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant