@Configuration should respect @DependsOn on imported or nested classes as well [SPR-11883] #16502
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
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#80Issue Links:
@Scope
and other common bean annotations on nested@Component
classesThe text was updated successfully, but these errors were encountered: