Consistent Environment access in XML bean definition parsing code [SPR-12248] #16862
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Juergen Hoeller opened SPR-12248 and commented
Dating back to the Spring 3.1 days, there is quite a bit of explicit passing around of
Environment
references in Spring's XML bean definition parsing code, e.g. inBeanDefinitionParserDelegate
andDefaultBeanDefinitionDocumentReader
. With the introduction of a convenientXmlReaderContext.getEnvironment()
method, there is really no need for explicitEnvironment
fields anymore.This allows for deprecating
BeanDefinitionDocumentReader.setEnvironment
andBeanDefinitionParserDelegate(XmlReaderContext, Environment)
, as well as as undeprecatingBeanDefinitionParserDelegate(XmlReaderContext)
. Some preparation measures are also going to be backported to 4.0.8 and 3.2.12, including a fully working version of the latter constructor.Affects: 4.1 GA
Issue Links:
Referenced from: commits de3ea5d, 5ecdd8c, d46c3fc
The text was updated successfully, but these errors were encountered: