Description
Chris Beams opened SPR-5682 and commented
The JavaConfig project provided [JavaConfigApplicationContext](http://static.springframework.org/spring-javaconfig/docs/1.0.0.M4/javadoc-api/org/springframework/config/java/context/JavaConfigApplicationContext.html)
and [JavaConfigWebApplicationContext](http://static.springframework.org/spring-javaconfig/docs/1.0.0.M4/javadoc-api/org/springframework/config/java/context/JavaConfigWebApplicationContext.html)
to allow for eliminating XML entirely. (See also: usage).
Similar implementations could be provided in Spring Core, though naming would probably change to ConfigurationClassApplicationContext
and ConfigurationClassWebApplicationContext
, respectively.
There are a number of issues to consider and work out before providing this support, but this issue can serve as a way to track community interest.
Sub-tasks:
- Eliminate duplicate code between ConfigurationClassApplicationContext and ConfigurationClassWebApplicationContext [SPR-6186] #10854 Eliminate duplicate code between ConfigurationClassApplicationContext and ConfigurationClassWebApplicationContext
- Document @Configuration classes and AnnotationConfig[Web]ApplicationContext [SPR-6187] #10855 Document
@Configuration
classes and AnnotationConfig[Web]ApplicationContext
Issue Links:
- Support @ImportResource within @Configuration classes [SPR-6158] #10826 Support
@ImportResource
within@Configuration
classes - Provide TestContext support for @Configuration classes [SPR-6184] #10852 Provide TestContext support for
@Configuration
classes - Support BeanFactory#getBean(Class<T> requiredType) [SPR-5529] #10200 Support BeanFactory#getBean(Class requiredType)
Referenced from: commits cbadf35, fd8935b, a48234c, 772a74a
12 votes, 13 watchers