Skip to content

Commit 0c4d11f

Browse files
committed
Clarify requirements of the Contexts SPI interface
1 parent 98ffc2f commit 0c4d11f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

api/src/main/java/org/jboss/cdi/tck/spi/Contexts.java

+8-2
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,20 @@ public interface Contexts<T extends Context> {
3434
public static final String PROPERTY_NAME = Contexts.class.getName();
3535

3636
/**
37-
* Sets the specified context as active
37+
* Sets the specified context as active.
38+
* <p>
39+
* The set of existing contextual instances of the context is preserved
40+
* across invocations of {@link #setActive(Context)} and {@link #setInactive(Context)}.
3841
*
3942
* @param context The context to set active
4043
*/
4144
public void setActive(T context);
4245

4346
/**
44-
* Sets the specified context as inactive
47+
* Sets the specified context as inactive.
48+
* <p>
49+
* The set of existing contextual instances of the context is preserved
50+
* across invocations of {@link #setActive(Context)} and {@link #setInactive(Context)}.
4551
*
4652
* @param context The context to set inactive
4753
*/

0 commit comments

Comments
 (0)