Skip to content

Clarify differences between GenericBeanDefinition and RootBeanDefinition #30444

Closed
@snicoll

Description

@snicoll

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.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: documentationA documentation task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions