public interface InjectedValueAccess
Modifier and Type | Field and Description |
---|---|
static InjectedValueAccess |
EMPTY |
Modifier and Type | Method and Description |
---|---|
default <T> java.util.Optional<T> |
injectedValue(Key<T> key)
Get an injected value.
|
<T> java.util.Optional<T> |
injectedValue(Key<T> key,
InjectedValueAccess access)
Get an injected value, resolving other injected values under the given context.
|
static final InjectedValueAccess EMPTY
default <T> java.util.Optional<T> injectedValue(Key<T> key)
Provide value injectors to a store.
Optional.empty()
if not providedInjectedValueStore.injectValue(Key, ValueProvider)
<T> java.util.Optional<T> injectedValue(Key<T> key, InjectedValueAccess access)
Provide value injectors to a store.
This alternative to injectedValue(Key)
is provided mostly for
wrapping classes to function properly.
Optional.empty()
if not providedInjectedValueStore.injectValue(Key, ValueProvider)