Clarify differences between GenericBeanDefinition and RootBeanDefinition #30444
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: documentation
A documentation task
Milestone
Our AOT efforts has required some minor refinements in the way bean definitions are created programmatically. For an independent bean that doesn't have a parent (very common),
RootBeanDefinition
is a better fit, in particular as it allows to capture the resolved type early.Looking at the Javadoc of
GenericBeanDefinition
it sounds like it is a better candidate for pretty much everything. It would be nice to rephrase that so that it is more accurate to the current situation.The text was updated successfully, but these errors were encountered: