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 the specification of BeanManager.getInjectableReference() to CDI Full #676

Merged
merged 1 commit into from May 31, 2023

Conversation

Ladicek
Copy link
Contributor

@Ladicek Ladicek commented May 31, 2023

We previously [1] moved the getInjectableReference() from the BeanContainer interface to the BeanManager [2], but did not update the specification text accordingly. Thus, the method is specified in the CDI Lite part of the spec, but it in fact belongs to CDI Full. This commit moves the spec text around to fix that.

Additionally, this commit removes the declaration of resolveObserverMethods() from BeanManager, because that just overrides the same declaration that is present on BeanContainer.

Finally, this commit moves the declaration of getInjectableReference() from the end of the BeanManager source code to the beginning, for symmetry with the BeanContainer declaration and to restore the previous layout.

[1] 520bad1
[2] #568

… Full

We previously [1] moved the `getInjectableReference()` from the `BeanContainer`
interface to the `BeanManager` [2], but did not update the specification text
accordingly. Thus, the method is specified in the CDI Lite part of the spec,
but it in fact belongs to CDI Full. This commit moves the spec text around
to fix that.

Additionally, this commit removes the declaration of `resolveObserverMethods()`
from `BeanManager`, because that just overrides the same declaration that is
present on `BeanContainer`.

Finally, this commit moves the declaration of `getInjectableReference()` from
the end of the `BeanManager` source code to the beginning, for symmetry with
the `BeanContainer` declaration and to restore the previous layout.

[1] jakartaee@520bad1
[2] jakartaee#568
@Ladicek Ladicek requested a review from manovotn May 31, 2023 12:32
@Ladicek Ladicek added this to the CDI 4.1 milestone May 31, 2023
@Ladicek
Copy link
Contributor Author

Ladicek commented May 31, 2023

I've also checked the CDI TCK and all references to getInjectableReference() are present in the CDI Full part of the TCK.

Copy link
Contributor

@manovotn manovotn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is an oversight from previously done changes.

@Ladicek Ladicek merged commit 9f6d5d0 into jakartaee:master May 31, 2023
4 checks passed
@Ladicek Ladicek deleted the get-injectable-reference branch May 31, 2023 12:46
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.

None yet

2 participants