As discussed with Josh Long, Kotlin bean definition DSL should provide a way to access to a list of beans of a specific type, for example by providing a getBeansOfType() alias in BeanDefinitionContext.
#20958 Ability to access Environment in the beans element of the Kotlin bean definition DSL
#21886 Replace context by provider() in Kotlin bean DSL ("is superseded by")
The text was updated successfully, but these errors were encountered:
We have 2 options here: adding refs() or beansOfType() aliases or provide maximum flexibility and give access to the internal GenericApplicationContext as implemented in this draft commit with main drawback being breaking encapsulation.