Uses of Class
com.fasterxml.jackson.databind.cfg.ContextAttributes
Packages that use ContextAttributes
Package
Description
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode), as well as
writing Java Objects and trees as JSON.Package that contains most of configuration-related classes;
exception being couple of most-commonly used configuration
things (like Feature enumerations) that are at the
main level (
com.fasterxml.jackson.databind).-
Uses of ContextAttributes in com.fasterxml.jackson.databind
Fields in com.fasterxml.jackson.databind declared as ContextAttributesModifier and TypeFieldDescriptionprotected ContextAttributesDeserializationContext._attributesLazily-constructed holder for per-call attributes.protected ContextAttributesSerializerProvider._attributesLazily-constructed holder for per-call attributes.Methods in com.fasterxml.jackson.databind that return ContextAttributesMethods in com.fasterxml.jackson.databind with parameters of type ContextAttributesModifier and TypeMethodDescriptionObjectMapper.reader(ContextAttributes attrs) Factory method for constructingObjectReaderthat will use specified default attributes.ObjectMapper.setDefaultAttributes(ContextAttributes attrs) NOTE: preferred way to set the defaults is to useBuilderstyle construction, seeJsonMapper.builder()(andMapperBuilder.defaultAttributes(ContextAttributes)).DeserializationConfig.with(ContextAttributes attrs) ObjectReader.with(ContextAttributes attrs) ObjectWriter.with(ContextAttributes attrs) SerializationConfig.with(ContextAttributes attrs) ObjectMapper.writer(ContextAttributes attrs) Factory method for constructingObjectWriterthat will use specified default attributes.Constructors in com.fasterxml.jackson.databind with parameters of type ContextAttributesModifierConstructorDescriptionprotectedprotectedSerializationConfig(SerializationConfig src, ContextAttributes attrs) -
Uses of ContextAttributes in com.fasterxml.jackson.databind.cfg
Subclasses of ContextAttributes in com.fasterxml.jackson.databind.cfgFields in com.fasterxml.jackson.databind.cfg declared as ContextAttributesModifier and TypeFieldDescriptionprotected final ContextAttributesMapperConfigBase._attributesContextual attributes accessible (get and set) during processing, on per-call basis.Methods in com.fasterxml.jackson.databind.cfg that return ContextAttributesModifier and TypeMethodDescriptionabstract ContextAttributesMapperConfig.getAttributes()Method for accessing per-instance shared (baseline/default) attribute values; these are used as the basis for per-call attributes.final ContextAttributesMapperConfigBase.getAttributes()static ContextAttributesContextAttributes.getEmpty()static ContextAttributesContextAttributes.Impl.getEmpty()protected ContextAttributesContextAttributes.Impl.nonSharedInstance(Object key, Object value) Overridable method that creates initial non-shared instance, with the first explicit set value.ContextAttributes.Impl.withoutSharedAttribute(Object key) abstract ContextAttributesContextAttributes.withoutSharedAttribute(Object key) ContextAttributes.Impl.withPerCallAttribute(Object key, Object value) abstract ContextAttributesContextAttributes.withPerCallAttribute(Object key, Object value) Mutator used during call (via context) to set value of "non-shared" part of attribute set.ContextAttributes.Impl.withSharedAttribute(Object key, Object value) abstract ContextAttributesContextAttributes.withSharedAttribute(Object key, Object value) ContextAttributes.Impl.withSharedAttributes(Map<?, ?> shared) abstract ContextAttributesContextAttributes.withSharedAttributes(Map<?, ?> attributes) Methods in com.fasterxml.jackson.databind.cfg with parameters of type ContextAttributesModifier and TypeMethodDescriptionMapperBuilder.defaultAttributes(ContextAttributes attrs) Method for replacing defaultContextAttributesthat the mapper uses: usually one initialized with a set of default shared attributes, but potentially also with a custom implementation.abstract TMapperConfigBase.with(ContextAttributes attrs) Method for constructing an instance that has specified contextual attributes.Constructors in com.fasterxml.jackson.databind.cfg with parameters of type ContextAttributesModifierConstructorDescriptionprotectedMapperConfigBase(MapperConfigBase<CFG, T> src, ContextAttributes attr)