Outdated Javadoc for AbstractApplicationContext.postProcessBeanFactory #29064
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: documentation
A documentation task
Milestone
The Javadoc for the
AbstractApplicationContext.postProcessBeanFactory(:ConfigurableListableBeanFactory)
method specifically states:While the later is true, the former is no longer true when bean definitions come from
@Configuration
classes, which won't be processed (i.e. "loaded" & "registered") until theConfigurationClassPostProcessor
is invoked.Technically, it is a difference between here (the method and Javadoc in question) vs. here (where the
ConfigurationClassPostProcessor
will eventually be invoked).As you know, the
ConfigurationClassPostProcessor
uses theConfigurationClassBeanDefinitionReader
to "load" bean definitions.At one time, most likely during the days of XML configuration, and before the advent of JavaConfig with
@Configuration
classes, this statement was probably true. However, now the statement may be a bit misleading for framework developers building extensions to the framework, such as anApplicationContext
implementation extending fromAbstractApplicationContext
.The text was updated successfully, but these errors were encountered: