Class ScopedValueInjectionContextScope
java.lang.Object
dev.derklaro.aerogel.scopedvalue.ScopedValueInjectionContextScope
- All Implemented Interfaces:
dev.derklaro.aerogel.internal.context.scope.InjectionContextScope
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final dev.derklaro.aerogel.internal.context.InjectionContextprivate final ScopedValue.Carrier -
Constructor Summary
ConstructorsConstructorDescriptionScopedValueInjectionContextScope(@NotNull dev.derklaro.aerogel.internal.context.InjectionContext context, @NotNull ScopedValue<dev.derklaro.aerogel.internal.context.scope.InjectionContextScope> scopeScopedValue) Constructs a new injection context scope for the given context and scoped value. -
Method Summary
Modifier and TypeMethodDescription@NotNull dev.derklaro.aerogel.internal.context.InjectionContextcontext()<T> @UnknownNullability TexecuteScoped(@NotNull Supplier<T> operation)
-
Field Details
-
context
private final dev.derklaro.aerogel.internal.context.InjectionContext context -
contextScopeCarrier
-
-
Constructor Details
-
ScopedValueInjectionContextScope
public ScopedValueInjectionContextScope(@NotNull @NotNull dev.derklaro.aerogel.internal.context.InjectionContext context, @NotNull @NotNull ScopedValue<dev.derklaro.aerogel.internal.context.scope.InjectionContextScope> scopeScopedValue) Constructs a new injection context scope for the given context and scoped value.- Parameters:
context- the context that is bound to this scope.scopeScopedValue- the scoped value for the injection scopes.
-
-
Method Details
-
context
-
executeScoped
- Specified by:
executeScopedin interfacedev.derklaro.aerogel.internal.context.scope.InjectionContextScope
-