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

Introduce BeanContainer.getContexts() to be able to get hold of all context objects, even if inactive #629

Merged
merged 1 commit into from May 23, 2023

Conversation

manovotn
Copy link
Contributor

Fixes #628

I will also create tracking TCK issue.
Also, I've checked in Weld that this is indeed trivial to implement as all BeanManager instances hold references to all contexts anyway.

@manovotn manovotn requested a review from Ladicek July 18, 2022 09:15
@Ladicek Ladicek added this to the CDI 4.1/5.0 milestone Jan 31, 2023
@Ladicek Ladicek removed the CDI.next label Jan 31, 2023
@Ladicek Ladicek merged commit edae31c into jakartaee:master May 23, 2023
* {@linkplain jakarta.enterprise.context scope}.
*
* @param scopeType the {@linkplain jakarta.enterprise.context scope}; must not be {@code null}
* @return immutable collection of {@linkplain Context context objects}; never {@code null}, but may be empty
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* @return immutable collection of {@linkplain Context context objects}; never {@code null}, but may be empty
* @return an immutable collection of {@linkplain Context context objects}; never {@code null}, but may be empty

@Ladicek
Copy link
Contributor

Ladicek commented May 23, 2023

Need to file a TCK tracking issue now.

EDIT: actually a TCK tracking issue already exists: jakartaee/cdi-tck#396

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.

Accessing custom context objects in CDI Lite
3 participants