java.lang.Object
tools.jackson.databind.cfg.ContextAttributes
tools.jackson.databind.cfg.ContextAttributes.Impl
- All Implemented Interfaces:
Serializable,Snapshottable<ContextAttributes>
- Enclosing class:
- ContextAttributes
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.cfg.ContextAttributes
ContextAttributes.Impl -
Field Summary
FieldsModifier and TypeFieldDescriptionPer-call attributes that we can directly modify, since they are not shared between threads.protected final Map<?,?> Shared attributes that we cannot modify in-place.protected static final ContextAttributes.Implprotected static final Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(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.snapshot()withPerCallAttribute(Object key, Object value) Mutator used during call (via context) to set value of "non-shared" part of attribute set.withSharedAttribute(Object key, Object value) Fluent factory method for creating a new instance with an additional shared attribute.withSharedAttributes(Map<?, ?> shared) Fluent factory method for creating a new instance with specified set of shared attributes.
-
Field Details
-
EMPTY
-
NULL_SURROGATE
-
-
Constructor Details
-
Impl
-
Impl
-
-
Method Details
-
getEmpty
-
snapshot
- Specified by:
snapshotin interfaceSnapshottable<ContextAttributes>
-
getAttribute
Description copied from class:ContextAttributesAccessor for value of specified attribute- Specified by:
getAttributein classContextAttributes
-
withPerCallAttribute
Description copied from class:ContextAttributesMutator used during call (via context) to set value of "non-shared" part of attribute set.- Specified by:
withPerCallAttributein classContextAttributes
-