Skip to content

Commit

Permalink
WELD-2726 Add means to obtain all contextual objects that can be used…
Browse files Browse the repository at this point in the history
… with Lite extensions
  • Loading branch information
manovotn committed Sep 30, 2022
1 parent 046e7ae commit 491c763
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions weld-spi/src/main/java/org/jboss/weld/manager/api/WeldManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,4 +229,16 @@ default Collection<WeldAlterableContext> getActiveWeldAlterableContexts() {
.map(t -> (WeldAlterableContext) t)
.collect(Collectors.toSet());
}

/**
* Obtains all {@linkplain Context context objects}, active and inactive, for the given
* {@linkplain jakarta.enterprise.context scope}.
* <p>
* This feature is planned to be added into specification as part of
* <a href="https://github.com/jakartaee/cdi/issues/628">this issue</a>.
*
* @param scopeType the {@linkplain jakarta.enterprise.context scope}; must not be {@code null}
* @return immutable collection of {@linkplain Context context objects}; never {@code null}, but may be empty
*/
Collection<Context> getContexts(Class<? extends Annotation> scopeType);
}

0 comments on commit 491c763

Please sign in to comment.