private class ContextLocal.Fallback
extends java.lang.Object
ContextLocal.fallback thread-local storage.
This is used as backing storage for this context local variable when no security environment is present.
This implementation is necessary to allow the fallback thread local variable's initialValue
method to invoke the enclosing class' implementation (which may have been overridden by a subclass).| Modifier and Type | Field and Description |
|---|---|
private T |
value
Cached value for this context-local instance.
|
| Modifier | Constructor and Description |
|---|---|
private |
Fallback() |
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Retrieved the cached
value. |
protected T |
initialValue()
Reroute an invocation of thread local's
initialValue
implementation to the enclosing class' method of the same name. |
void |
set(T value)
Set the
value. |
private T value
public T get()
value. If not set, call initialValue().public void set(T value)
value.value - The current value for this context-local instance.protected T initialValue()
initialValue
implementation to the enclosing class' method of the same name.initialValue implementation.