Register bean definition dependencies when used via configuration class injected fields #26167
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Take the following two ways of declaring a bean definition manually.
In this case, the implicit dependency from
MyService
toMyRepository
is not taken into account on theBeanDefinition
level which has consequences on the destruction order on container shutdown. The repository might already shut down so that destruction callbacks onMyService
will not be able to use the repository anmore.The text was updated successfully, but these errors were encountered: