Class ContextAttributes.Impl
- java.lang.Object
-
- com.fasterxml.jackson.databind.cfg.ContextAttributes
-
- com.fasterxml.jackson.databind.cfg.ContextAttributes.Impl
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ContextAttributes
public static class ContextAttributes.Impl extends ContextAttributes implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.cfg.ContextAttributes
ContextAttributes.Impl
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Object,Object>_nonSharedPer-call attributes that we can directly modify, since they are not shared between threads.protected Map<?,?>_sharedShared attributes that we cannot modify in-place.protected static ContextAttributes.ImplEMPTYprotected static ObjectNULL_SURROGATE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttribute(Object key)Accessor for value of specified attributestatic ContextAttributesgetEmpty()protected ContextAttributesnonSharedInstance(Object key, Object value)Overridable method that creates initial non-shared instance, with the first explicit set value.ContextAttributeswithoutSharedAttribute(Object key)ContextAttributeswithPerCallAttribute(Object key, Object value)Mutator used during call (via context) to set value of "non-shared" part of attribute set.ContextAttributeswithSharedAttribute(Object key, Object value)ContextAttributeswithSharedAttributes(Map<?,?> shared)
-
-
-
Field Detail
-
EMPTY
protected static final ContextAttributes.Impl EMPTY
-
NULL_SURROGATE
protected static final Object NULL_SURROGATE
-
_shared
protected final Map<?,?> _shared
Shared attributes that we cannot modify in-place.
-
-
Method Detail
-
getEmpty
public static ContextAttributes getEmpty()
-
withSharedAttribute
public ContextAttributes withSharedAttribute(Object key, Object value)
- Specified by:
withSharedAttributein classContextAttributes
-
withSharedAttributes
public ContextAttributes withSharedAttributes(Map<?,?> shared)
- Specified by:
withSharedAttributesin classContextAttributes
-
withoutSharedAttribute
public ContextAttributes withoutSharedAttribute(Object key)
- Specified by:
withoutSharedAttributein classContextAttributes
-
getAttribute
public Object getAttribute(Object key)
Description copied from class:ContextAttributesAccessor for value of specified attribute- Specified by:
getAttributein classContextAttributes
-
withPerCallAttribute
public ContextAttributes withPerCallAttribute(Object key, Object value)
Description copied from class:ContextAttributesMutator used during call (via context) to set value of "non-shared" part of attribute set.- Specified by:
withPerCallAttributein classContextAttributes
-
nonSharedInstance
protected ContextAttributes nonSharedInstance(Object key, Object value)
Overridable method that creates initial non-shared instance, with the first explicit set value.
-
-