You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Automatically detect and register static nested @FeatureConfiguration classes [SPR-8034] #12689
As a convenience to avoids the need to create a separate compilation unit (.java file) for @FeatureConfiguration types, allow users to do the following:
@Configuration
public class MyBeans {
@Bean
public DataSource dataSource() { ... }
@FeatureConfiguration
static class MyFeatures {
@Feature
public ComponentScanSpec scan() {
return new ComponentScanSpec("com.bank.app");
}
}
}
In such a case, no explicit registration or import of the @FeatureConfiguration class would be necessary. Simply bootstrapping the container with
new AnnotationConfigApplicationContext(MyBeans.class);
Activity
spring-projects-issues commentedon May 7, 2011
Chris Beams commented
"Feature" support has been backed out in 3.1 M2. No longer valid.