Programmatic ObjectProvider retrieval through BeanFactory API [SPR-17075] #21613
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Juergen Hoeller opened SPR-17075 and commented
After several discussions around #21511, #16046 and #13532, it turns out that programmatic retrieval of an
ObjectProvider
handle - as opposed to it just being obtainable through annotation-driven injection - would significantly enrich functional bean definitions.So as of 5.1,
BeanFactory.getBeanProvider
provides a convenient and powerful enough entry point for the time being. Stream access to multiple matching beans is covered in #16046 now; just programmatic bean retrieval with qualifiers is left to #13532 still.Issue Links:
@Bean
methodsThe text was updated successfully, but these errors were encountered: