Skip to content

Commit

Permalink
Clarify requirements of the Contexts SPI interface
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotn committed May 24, 2023
1 parent 98ffc2f commit 1fc78ac
Showing 1 changed file with 8 additions and 2 deletions.
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

0 comments on commit 1fc78ac

Please sign in to comment.