Skip to content

Added bean DSL function to get all beans of a given type #1801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

zsmb13
Copy link

@zsmb13 zsmb13 commented Apr 20, 2018

This is a DSL equivalent of autowiring a list of a bean type into a component.

The issue was originally raised in this StackOverflow question, which contains a code example as well.

@pivotal-issuemaster
Copy link

@zsmb13 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@zsmb13 Thank you for signing the Contributor License Agreement!

@GleyderC
Copy link

GleyderC commented Apr 20, 2018 via email

@sdeleuze sdeleuze self-assigned this Apr 20, 2018
@sdeleuze
Copy link
Contributor

sdeleuze commented May 2, 2018

@zsmb13 Thanks for this contribution, I think this is addressing the same kind of needs than SPR-16269 which was recently fixed on master (targeting Spring Framework 5.1) where I chose to provide a context.getBeansOfType<Foo>() shortcut also suitable for other advanced ApplicationContext use cases. Is this approach suitable for your use case?

@sdeleuze sdeleuze closed this May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants