Support by-type constructor references in ConstructorOrFactoryMethodResolver
#28728
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: bug
A general bug
Milestone
ConstructorOrFactoryMethodResolver
supports type various constructor argument types such as by-name references through inspectingBeanReference
. It would be neat to also supportRuntimeBeanReference
with aClass
argument to lookup beans by their type rather than just the type name. Having by-type references that work similar to the non-AOT runtime arrangement would simplify bean definitions.FWIW, a
RuntimeBeanReference
leads to the following exception:The text was updated successfully, but these errors were encountered: