Class ScopedValueInjectionContextProvider
java.lang.Object
dev.derklaro.aerogel.scopedvalue.ScopedValueInjectionContextProvider
- All Implemented Interfaces:
dev.derklaro.aerogel.internal.context.scope.InjectionContextProvider
@API(status=INTERNAL,
since="3.0")
public final class ScopedValueInjectionContextProvider
extends Object
implements dev.derklaro.aerogel.internal.context.scope.InjectionContextProvider
ScopedValueInjectionContextProvider relies on preview features of the Java platform:
ScopedValueInjectionContextProviderrefers to one or more preview APIs:ScopedValue<T>.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
An injection context provider that uses scoped values.
- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ScopedValuePREVIEW<dev.derklaro.aerogel.internal.context.scope.InjectionContextScope> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.derklaro.aerogel.internal.context.scope.InjectionContextProvider
enterContextScope
-
Field Details
-
scopeScopedValue
private final ScopedValuePREVIEW<dev.derklaro.aerogel.internal.context.scope.InjectionContextScope> scopeScopedValue
-
-
Constructor Details
-
ScopedValueInjectionContextProvider
public ScopedValueInjectionContextProvider()
-
-
Method Details
-
currentScope
-
enterContextScope
@NotNull public @NotNull dev.derklaro.aerogel.internal.context.scope.InjectionContextScope enterContextScope(@NotNull @NotNull dev.derklaro.aerogel.Injector injector, @NotNull @NotNull dev.derklaro.aerogel.binding.key.BindingKey<?> requestingKey, @NotNull @NotNull dev.derklaro.aerogel.binding.InstalledBinding<?> binding, @NotNull @NotNull Map<dev.derklaro.aerogel.binding.key.BindingKey<?>, Provider<?>> overrides) - Specified by:
enterContextScopein interfacedev.derklaro.aerogel.internal.context.scope.InjectionContextProvider
-
ScopedValueInjectionContextProviderwhen preview features are enabled.