mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-09 00:29:04 +00:00
Add a new `InstanceSupplier` interface that can be used as an alternative to a regular bean `Supplier` when details about the bean being supplied are required to instantiate it. The new interface accepts a `RegisteredBean` instance which provides access to the bean name, the bean factory creating the bean and the bean definition. This interface is primarily designed to allow AOT generated code to autowire dependencies into the instance. See gh-28414