Phil Webb opened SPR-10609 and commented
Any @Component is currently considered as a lite configuration class option [1]. It would probably make more sense to restrict lite configuration classes to only those containing @Bean methods.
[1] https://github.com/SpringSource/spring-framework/blob/v3.2.3.RELEASE/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassUtils.java#L103
Affects: 3.2.3
Sub-tasks:
Issue Links:
Phil Webb opened SPR-10609 and commented
Any
@Componentis currently considered as a lite configuration class option [1]. It would probably make more sense to restrict lite configuration classes to only those containing@Beanmethods.[1] https://github.com/SpringSource/spring-framework/blob/v3.2.3.RELEASE/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassUtils.java#L103
Affects: 3.2.3
Sub-tasks:
@Componentinstances as@ConfigurationcandidatesIssue Links:
@Beanintrospection between@Configurationclasses and 'lite' beans