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

Clarify requirements of the Contexts SPI interface #466

Merged
merged 1 commit into from
May 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions api/src/main/java/org/jboss/cdi/tck/spi/Contexts.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,20 @@ public interface Contexts<T extends Context> {
public static final String PROPERTY_NAME = Contexts.class.getName();

/**
* Sets the specified context as active
* Sets the specified context as active.
* <p>
* The set of existing contextual instances of the context is preserved
* across invocations of {@link #setActive(Context)} and {@link #setInactive(Context)}.
*
* @param context The context to set active
*/
public void setActive(T context);

/**
* Sets the specified context as inactive
* Sets the specified context as inactive.
* <p>
* The set of existing contextual instances of the context is preserved
* across invocations of {@link #setActive(Context)} and {@link #setInactive(Context)}.
*
* @param context The context to set inactive
*/
Expand Down