File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
api/src/main/java/jakarta/enterprise/inject/spi Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1313
1414import java .lang .annotation .Annotation ;
1515import java .lang .reflect .Type ;
16+ import java .util .Collection ;
1617import java .util .List ;
1718import java .util .Set ;
1819
@@ -213,6 +214,15 @@ public interface BeanContainer {
213214 */
214215 Context getContext (Class <? extends Annotation > scopeType );
215216
217+ /**
218+ * Obtains all {@linkplain Context context objects}, active and inactive, for the given
219+ * {@linkplain jakarta.enterprise.context scope}.
220+ *
221+ * @param scopeType the {@linkplain jakarta.enterprise.context scope}; must not be {@code null}
222+ * @return immutable collection of {@linkplain Context context objects}; never {@code null}, but may be empty
223+ */
224+ Collection <Context > getContexts (Class <? extends Annotation > scopeType );
225+
216226 /**
217227 * Returns an instance of Event with specified type <code>java.lang.Object</code> and specified qualifier <code>@Default</code>
218228 * It allows typesafe synchronous or asynchronous event firing without injection of {@link Event} built-in bean requirement.
You can’t perform that action at this time.
0 commit comments