public static class ContextAttributes.Impl extends ContextAttributes implements Serializable
ContextAttributes.Impl
Modifier and Type | Field and Description |
---|---|
protected Map<Object,Object> |
_nonShared
Per-call attributes that we can directly modify, since they are not
shared between threads.
|
protected Map<Object,Object> |
_shared
Shared attributes that we can not modify in-place.
|
protected static ContextAttributes.Impl |
EMPTY |
protected static Object |
NULL_SURROGATE |
Modifier | Constructor and Description |
---|---|
protected |
ContextAttributes.Impl(Map<Object,Object> shared) |
protected |
ContextAttributes.Impl(Map<Object,Object> shared,
Map<Object,Object> nonShared) |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(Object key)
Accessor for value of specified attribute
|
static ContextAttributes |
getEmpty() |
protected ContextAttributes |
nonSharedInstance(Object key,
Object value)
Overridable method that creates initial non-shared instance,
with the first explicit set value.
|
ContextAttributes |
withoutSharedAttribute(Object key) |
ContextAttributes |
withPerCallAttribute(Object key,
Object value)
Mutator used during call (via context) to set value of "non-shared"
part of attribute set.
|
ContextAttributes |
withSharedAttribute(Object key,
Object value) |
ContextAttributes |
withSharedAttributes(Map<Object,Object> shared) |
protected static final ContextAttributes.Impl EMPTY
protected static final Object NULL_SURROGATE
protected final Map<Object,Object> _shared
public static ContextAttributes getEmpty()
public ContextAttributes withSharedAttribute(Object key, Object value)
withSharedAttribute
in class ContextAttributes
public ContextAttributes withSharedAttributes(Map<Object,Object> shared)
withSharedAttributes
in class ContextAttributes
public ContextAttributes withoutSharedAttribute(Object key)
withoutSharedAttribute
in class ContextAttributes
public Object getAttribute(Object key)
ContextAttributes
getAttribute
in class ContextAttributes
public ContextAttributes withPerCallAttribute(Object key, Object value)
ContextAttributes
withPerCallAttribute
in class ContextAttributes
protected ContextAttributes nonSharedInstance(Object key, Object value)
Copyright © 2008–2016 FasterXML. All rights reserved.