Commit 81d5679 1 parent 98ffc2f commit 81d5679 Copy full SHA for 81d5679
File tree 1 file changed +10
-2
lines changed
api/src/main/java/org/jboss/cdi/tck/spi
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,22 @@ public interface Contexts<T extends Context> {
34
34
public static final String PROPERTY_NAME = Contexts .class .getName ();
35
35
36
36
/**
37
- * Sets the specified context as active
37
+ * Sets the specified context as active.
38
+ * <p>
39
+ * If the context was previously set as inactive via {@link #setInactive(Context)}, this method is expected to
40
+ * restore the state of the context, including all contextual instances that were previously in it.
41
+ * <p>
42
+ * If the context wasn't previously set as inactive, a new context is created and activated.
38
43
*
39
44
* @param context The context to set active
40
45
*/
41
46
public void setActive (T context );
42
47
43
48
/**
44
- * Sets the specified context as inactive
49
+ * Sets the specified context as inactive; this operation does not destroy contextual instances.
50
+ * <p>
51
+ * Implementations need to store the context state as subsequent invocations of {@link #setActive(Context)} may
52
+ * attempt to restore the context.
45
53
*
46
54
* @param context The context to set inactive
47
55
*/
You can’t perform that action at this time.
0 commit comments