Uses of Class
tools.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 (
tools.jackson.databind).-
Uses of ContextAttributes in tools.jackson.databind
Fields in tools.jackson.databind declared as ContextAttributesModifier and TypeFieldDescriptionprotected ContextAttributesDeserializationContext._attributesLazily-constructed holder for per-call attributes.protected ContextAttributesSerializationContext._attributesLazily-constructed holder for per-call attributes.Methods in tools.jackson.databind that return ContextAttributesMethods in tools.jackson.databind with parameters of type ContextAttributesModifier and TypeMethodDescriptionObjectMapper.reader(ContextAttributes attrs) Factory method for constructingObjectReaderthat will use specified default attributes.DeserializationConfig.with(ContextAttributes attrs) ObjectReader.with(ContextAttributes attrs) Mutant factory for overriding set of (default) attributes forObjectReaderto use.ObjectWriter.with(ContextAttributes attrs) Mutant factory for overriding set of (default) attributes forObjectWriterto use.SerializationConfig.with(ContextAttributes attrs) ObjectMapper.writer(ContextAttributes attrs) Factory method for constructingObjectWriterthat will use specified default attributes.Constructors in tools.jackson.databind with parameters of type ContextAttributesModifierConstructorDescriptionDeserializationConfig(MapperBuilder<?, ?> b, long mapperFeatures, int deserFeatures, int streamReadFeatures, int formatReadFeatures, ConfigOverrides configOverrides, CoercionConfigs coercionConfigs, TypeFactory tf, ClassIntrospector classIntr, MixInHandler mixins, SubtypeResolver str, ContextAttributes defaultAttrs, RootNameLookup rootNames, AbstractTypeResolver[] atrs) protectedSerializationConfig(MapperBuilder<?, ?> b, long mapperFeatures, int serFeatures, int streamWriteFeatures, int formatWriteFeatures, ConfigOverrides configOverrides, TypeFactory tf, ClassIntrospector classIntr, MixInHandler mixins, SubtypeResolver str, ContextAttributes defaultAttrs, RootNameLookup rootNames, FilterProvider filterProvider) protectedSerializationConfig(SerializationConfig src, ContextAttributes attrs) -
Uses of ContextAttributes in tools.jackson.databind.cfg
Subclasses of ContextAttributes in tools.jackson.databind.cfgFields in tools.jackson.databind.cfg declared as ContextAttributesModifier and TypeFieldDescriptionprotected final ContextAttributesMapperConfigBase._attributesContextual attributes accessible (get and set) during processing, on per-call basis.protected ContextAttributesMapperBuilder._defaultAttributesExplicitly configured defaultContextAttributes, if any.protected final ContextAttributesMapperBuilderState._defaultAttributesMethods in tools.jackson.databind.cfg that return ContextAttributesModifier and TypeMethodDescriptionprotected ContextAttributesMapperBuilder._defaultDefaultAttributes()Overridable method for changing defaultContextAttributesinstance to use if not explicitly specified during build process.MapperBuilder.defaultAttributes()Overridable method for changing defaultContextAttributesinstance to use if not explicitly specified during build process.abstract 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()Accessor for an empty instance ofContextAttributes: usable as-is, or as a starting point for building up a set of default attributes.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.snapshot()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) Fluent factory method for creating a new instance with an additional shared attribute.ContextAttributes.Impl.withSharedAttributes(Map<?, ?> shared) abstract ContextAttributesContextAttributes.withSharedAttributes(Map<?, ?> attributes) Fluent factory method for creating a new instance with specified set of shared attributes.Methods in tools.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 tools.jackson.databind.cfg with parameters of type ContextAttributesModifierConstructorDescriptionprotectedMapperConfigBase(MapperBuilder<?, ?> b, long mapperFeatures, TypeFactory tf, ClassIntrospector classIntr, MixInHandler mixins, SubtypeResolver str, ConfigOverrides configOverrides, ContextAttributes defaultAttrs, RootNameLookup rootNames) Constructor used when creating a new instance (compared to that of creating fluent copies)protectedMapperConfigBase(MapperConfigBase<CFG, T> src, ContextAttributes attr)