Skip to content

Programmatic ObjectProvider retrieval through BeanFactory API [SPR-17075] #21613

Closed
@spring-projects-issues

Description

@spring-projects-issues

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:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions