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

Move getInjectableReference method from BeanContainer to BeanManager #574

Merged
merged 1 commit into from
Dec 8, 2021

Conversation

manovotn
Copy link
Contributor

@manovotn manovotn commented Dec 7, 2021

Fixes #568

@manovotn manovotn requested a review from Ladicek December 7, 2021 13:27
@Ladicek Ladicek requested a review from graemerocher December 7, 2021 15:15
@Emily-Jiang
Copy link
Contributor

Can you explain why the method needs to be moved to BeanManager?

@manovotn
Copy link
Contributor Author

manovotn commented Dec 8, 2021

@Emily-Jiang the linked issue explains it - in short it is very hard (in Lite) to get hold of InjectionPoint which is a parameter needed for this method. Therefore, you are highly unlikely to invoke this method in purely CDI Lite.
Note that Lite impls can still implement it if they wish to since we allow them to use BeanManager which will retain this method anyway.

@manovotn manovotn merged commit 520bad1 into jakartaee:master Dec 8, 2021
@manovotn manovotn deleted the issue568 branch December 8, 2021 08:04
@Emily-Jiang
Copy link
Contributor

okay, thanks @manovotn ! For some strange reason, I did not see the linked issue on this PR when I looked. I might have missed it. Your explanation makes sense.

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.

BeanContainer#getInjectableReference should probably be on BeanManager instead
3 participants