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

@Configuration should respect @DependsOn on imported or nested classes as well [SPR-11883] #16502

Closed
spring-projects-issues opened this issue Jun 18, 2014 · 1 comment
Assignees
Labels
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 Jun 18, 2014

Dave Syer opened SPR-11883 and commented

The @DependsOn annotation is allowed at the type level but it doesn't seem to work on @Configuration classes if they are @Imported or nested inside another @Configuration. To make a @Configuration class really depend on something I found I had to create a @Bean and annotate the method (not the type). Test case: spring-attic/spring-framework-issues#80


Issue Links:

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Mar 31, 2015

Juergen Hoeller commented

This has been addressed with #17092 already, as of 4.1.3. I've just added a specific unit test for @Import with @DependsOn now.

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

2 participants