DefaultListableBeanFactory.getBeanNamesForAnnotation : Improve javadoc [SPR-17392] #21925
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: task
A general task
Milestone
Philipp Foermer opened SPR-17392 and commented
For "org.springframework.beans.factory.support.DefaultListableBeanFactory" the javadoc of
defines:
It would be nice, if the wording is precised, as a registered FactoryBean BeanDefinition is eagerly initialized, if the method is invoked.
I noticed this unexpected behaviour in a custom
@Conditional
Condition implementation, causing broken factory bean instances, because required preconditions have not been initialized before factory bean was eagerly initialized.It seems that the eager initialization issue as been worked around in "org.springframework.boot.autoconfigure.condition.BeanTypeRegistry" by missing this case.
Affects: 4.3.17
Referenced from: commits 5a6c081, cd66467, da23505
Backported to: 5.0.11, 4.3.21
The text was updated successfully, but these errors were encountered: