Skip to content
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

Update doGetBean method impl to resolve qualier from NameResolver #240

Merged
merged 1 commit into from
Dec 3, 2021

Conversation

puneetbehl
Copy link
Contributor

This implementation allows doGetBean method implementation to resolve bean from name "java.util.concurrent.ExecutorService(io)". Earlier this worked only with following :

beanFactory.getBean("java.util.concurrent.ExecutorService(io)")

Whereas, calling doGetBean(name, requiredType, args, typeCheckOnly) throws NonUniqueBeanException because it eventually ends up calling getBeanByType and there are 2 implementation for the same as:

  1. java.util.concurrent.ExecutorService(io)
  2. java.util.concurrent.ExecutorService(scheduled)

This implementation allows doGetBean method implementation to resolve bean from name "java.util.concurrent.ExecutorService(io)". Earlier this worked only with `beanFactory.getBean("java.util.concurrent.ExecutorService(io)")`, whereas when we call `doGetBean(name, requiredType, args, typeCheckOnly)` then it throws `NonUniqueBeanException` because it eventually ends up calling getBeanByType and there are 2 implemntation for the same, 1. java.util.concurrent.ExecutorService(io) 2.java.util.concurrent.ExecutorService(scheduled).
@puneetbehl puneetbehl requested a review from jameskleeh December 3, 2021 19:21
@jameskleeh jameskleeh merged commit 023e6ce into master Dec 3, 2021
@jameskleeh jameskleeh deleted the fixDoGetBeanMethod branch December 3, 2021 20:28
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.

2 participants