Uses of Class
tools.jackson.databind.ValueSerializer
Packages that use ValueSerializer
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
).Contains extended support for "external" packages: things that
may or may not be present in runtime environment, but that are
commonly enough used so that explicit support can be added.
Package that contains handlers specific to datatypes introduced in Java 8.
Package that contains handlers specific to SQL datatypes.
Package that contains classes and interfaces to help implement
custom extension
JacksonModule
s
(which are registered on ObjectMapper via builders}.Contains implementation classes of serialization part of
data binding.
Contains implementation classes of serialization part of
data binding.
-
Uses of ValueSerializer in tools.jackson.databind
Subclasses of ValueSerializer in tools.jackson.databindModifier and TypeClassDescriptionstatic class
This marker class is only to be used with annotations, to indicate that no serializer is configured.Fields in tools.jackson.databind declared as ValueSerializerModifier and TypeFieldDescriptionprotected final ValueSerializer<Object>
SerializationContext._nullValueSerializer
Serializer used to output a null value.protected final ValueSerializer<Object>
SequenceWriter._rootSerializer
protected static final ValueSerializer<Object>
SerializationContext.DEFAULT_UNKNOWN_SERIALIZER
Placeholder serializer used whenjava.lang.Object
typed property is marked to be serialized.Methods in tools.jackson.databind that return ValueSerializerModifier and TypeMethodDescriptionprotected ValueSerializer<Object>
SerializationContext._createAndCachePropertySerializer
(Class<?> rawType, JavaType fullType, BeanProperty prop) Alternative toSerializationContext._createAndCacheUntypedSerializer(Class, JavaType)
, used when serializer is requested for given property.protected ValueSerializer<Object>
SerializationContext._createAndCachePropertySerializer
(JavaType type, BeanProperty prop) Alternative toSerializationContext._createAndCacheUntypedSerializer(JavaType)
, used when serializer is requested for given property.protected ValueSerializer<Object>
SerializationContext._createAndCacheUntypedSerializer
(Class<?> rawType, JavaType fullType) Method that will try to construct a value serializer; and if one is successfully created, cache it for reuse.protected ValueSerializer<Object>
SerializationContext._createAndCacheUntypedSerializer
(JavaType type) protected ValueSerializer<Object>
SerializationContext._handleResolvable
(ValueSerializer<?> ser) ValueSerializer.createContextual
(SerializationContext ctxt, BeanProperty property) Method called to see if a different (or differently configured) serializer is needed to serialize values of specified property (or, for root values, in which case `null` is passed).SerializationContext.findContentValueSerializer
(Class<?> rawType, BeanProperty property) SerializationContext.findContentValueSerializer
(JavaType valueType, BeanProperty property) Method similar toSerializationContext.findPrimaryPropertySerializer(JavaType, BeanProperty)
but used for "content values", secondary types used by "primary" serializers for structured types like Arrays,Collection
s,Map
s and so on.SerializationContext.findKeySerializer
(Class<?> rawKeyType, BeanProperty property) SerializationContext.findKeySerializer
(JavaType keyType, BeanProperty property) Method called to get the serializer to use for serializing non-null Map keys.SerializationContext.findNullKeySerializer
(JavaType serializationType, BeanProperty property) Method called to find a serializer to use for null values for given declared type.SerializationContext.findNullValueSerializer
(BeanProperty property) Method called to get the serializer to use for serializing null values for specified property.SerializationContext.findPrimaryPropertySerializer
(Class<?> rawType, BeanProperty property) SerializationContext.findPrimaryPropertySerializer
(JavaType valueType, BeanProperty property) Method used for locating "primary" property value serializer (one directly handling value of the property).SerializationContext.findRootValueSerializer
(Class<?> rawType) Method for finding (from cache) or creating (and caching) serializer for given type, without checking for polymorphic typing, and then contextualizing without actual property.SerializationContext.findRootValueSerializer
(JavaType valueType) Method for finding (from cache) or creating (and caching) serializer for given type, without checking for polymorphic typing, and then contextualizing without actual property.SerializationContext.findTypedValueSerializer
(Class<?> rawType, boolean cache) Method called to locate regular serializer, matching type serializer, and if both found, wrap them in a serializer that calls both in correct sequence.SerializationContext.findTypedValueSerializer
(JavaType valueType, boolean cache) Method called to locate regular serializer, matching type serializer, and if both found, wrap them in a serializer that calls both in correct sequence.SerializationContext.findValueSerializer
(Class<?> rawType) SerializationContext.findValueSerializer
(JavaType valueType) Method variant used when we do NOT want contextualization to happen; it will need to be done at a later point (many serializers are not in operational state before contextualization, call tocreateContextual(SerializationContext, BeanProperty)
), but caller wants to be able to do that at a later point; sometimes to avoid infinite loopsSerializationContext.getDefaultNullValueSerializer()
ValueSerializer.getDelegatee()
Accessor that can be used to determine if this serializer uses another serializer for actual serialization, by delegating calls.SerializationContext.getUnknownTypeSerializer
(Class<?> unknownType) Method called to get the serializer to use if provider cannot determine an actual type-specific serializer to use; typically when none ofSerializerFactory
instances are able to construct a serializer.final ValueSerializer<Object>
ObjectWriter.Prefetch.getValueSerializer()
SerializationContext.handlePrimaryContextualization
(ValueSerializer<?> ser, BeanProperty property) Method called for primary property serializers (ones directly created to serialize values of a POJO property), to handle details of contextualization, callingcreateContextual(SerializationContext, BeanProperty)
with given property context.SerializationContext.handleRootContextualization
(ValueSerializer<?> ser) SerializationContext.handleSecondaryContextualization
(ValueSerializer<?> ser, BeanProperty property) Method called for secondary property serializers (ones NOT directly created to serialize values of a POJO property but instead created as a dependant serializer -- such as value serializers for structured types, or serializers for root values) to handle details of contextualization, callingcreateContextual(SerializationContext, BeanProperty)
with given property context.ValueSerializer.replaceDelegatee
(ValueSerializer<?> delegatee) Method that can be called to try to replace serializer this serializer delegates calls to.abstract ValueSerializer<Object>
SerializationContext.serializerInstance
(Annotated annotated, Object serDef) Method that can be called to construct and configure serializer instance, either given aClass
to instantiate (with default constructor), or an uninitialized serializer instance.ValueSerializer.unwrappingSerializer
(NameTransformer unwrapper) Method that will return serializer instance that produces "unwrapped" serialization, if applicable for type being serialized (which is the case for some serializers that produce JSON Objects as output).ValueSerializer.withFilterId
(Object filterId) Mutant factory method that is called if contextual configuration indicates that a specific filter (as specified byfilterId
) is to be used for serialization.ValueSerializer.withFormatOverrides
(SerializationConfig config, JsonFormat.Value formatOverrides) Mutant factory called if there is need to create a serializer with specified format overrides (typically from property on which this serializer would be used, based on type declaration).ValueSerializer.withIgnoredProperties
(Set<String> ignoredProperties) Mutant factory method called to create a new instance after excluding specified set of properties by name, if there is any.Methods in tools.jackson.databind with parameters of type ValueSerializerModifier and TypeMethodDescriptionprotected ValueSerializer<Object>
SerializationContext._handleResolvable
(ValueSerializer<?> ser) SerializationContext.handlePrimaryContextualization
(ValueSerializer<?> ser, BeanProperty property) Method called for primary property serializers (ones directly created to serialize values of a POJO property), to handle details of contextualization, callingcreateContextual(SerializationContext, BeanProperty)
with given property context.SerializationContext.handleRootContextualization
(ValueSerializer<?> ser) SerializationContext.handleSecondaryContextualization
(ValueSerializer<?> ser, BeanProperty property) Method called for secondary property serializers (ones NOT directly created to serialize values of a POJO property but instead created as a dependant serializer -- such as value serializers for structured types, or serializers for root values) to handle details of contextualization, callingcreateContextual(SerializationContext, BeanProperty)
with given property context.boolean
SerializationContext.isUnknownTypeSerializer
(ValueSerializer<?> ser) Helper method called to see if given serializer is considered to be something returned bySerializationContext.getUnknownTypeSerializer(java.lang.Class<?>)
, that is, something for which no regular serializer was found or constructed.JacksonModule.SetupContext.overrideDefaultNullKeySerializer
(ValueSerializer<?> ser) Method that module can use to override handler called to write JSON Object key forMap
values.JacksonModule.SetupContext.overrideDefaultNullValueSerializer
(ValueSerializer<?> ser) Method that module can use to override handler called to write Java `null` as a value (Property or Map value, Collection/array element).ValueSerializer.replaceDelegatee
(ValueSerializer<?> delegatee) Method that can be called to try to replace serializer this serializer delegates calls to. -
Uses of ValueSerializer in tools.jackson.databind.cfg
Fields in tools.jackson.databind.cfg declared as ValueSerializerModifier and TypeFieldDescriptionprotected final ValueSerializer<Object>
SerializerFactoryConfig._nullKeySerializer
Serializer used to (try to) output a null key, due to an entry ofMap
having null key.protected final ValueSerializer<Object>
SerializerFactoryConfig._nullValueSerializer
Serializer used to output a null value, unless explicitly redefined for property.static final ValueSerializer<Object>
SerializerFactoryConfig.DEFAULT_NULL_KEY_SERIALIZER
Methods in tools.jackson.databind.cfg that return ValueSerializerModifier and TypeMethodDescriptionSerializerFactoryConfig.getNullKeySerializer()
SerializerFactoryConfig.getNullValueSerializer()
abstract ValueSerializer<?>
HandlerInstantiator.serializerInstance
(SerializationConfig config, Annotated annotated, Class<?> serClass) Method called to get an instance of serializer of specified type.Methods in tools.jackson.databind.cfg that return types with arguments of type ValueSerializerModifier and TypeMethodDescriptionCacheProvider.forSerializerCache
(SerializationConfig config) Method to provide aLookupCache
instance for constructingSerializerCache
.DefaultCacheProvider.forSerializerCache
(SerializationConfig config) Methods in tools.jackson.databind.cfg with parameters of type ValueSerializerModifier and TypeMethodDescriptionModuleContextBase.overrideDefaultNullKeySerializer
(ValueSerializer<?> ser) ModuleContextBase.overrideDefaultNullValueSerializer
(ValueSerializer<?> ser) SerializerFactoryConfig.withNullKeySerializer
(ValueSerializer<?> nks) SerializerFactoryConfig.withNullValueSerializer
(ValueSerializer<?> nvs) Constructors in tools.jackson.databind.cfg with parameters of type ValueSerializerModifierConstructorDescriptionprotected
SerializerFactoryConfig
(Serializers[] allAdditionalSerializers, Serializers[] allAdditionalKeySerializers, ValueSerializerModifier[] modifiers, ValueSerializer<Object> nullKeySer, ValueSerializer<Object> nullValueSer) -
Uses of ValueSerializer in tools.jackson.databind.ext
Subclasses of ValueSerializer in tools.jackson.databind.extModifier and TypeClassDescriptionclass
class
class
Fields in tools.jackson.databind.ext declared as ValueSerializerMethods in tools.jackson.databind.ext that return ValueSerializerModifier and TypeMethodDescriptionQNameSerializer.createContextual
(SerializationContext serializers, BeanProperty property) XMLGregorianCalendarSerializer.createContextual
(SerializationContext ctxt, BeanProperty property) OptionalHandlerFactory.findSerializer
(SerializationConfig config, JavaType type) XMLGregorianCalendarSerializer.getDelegatee()
Constructors in tools.jackson.databind.ext with parameters of type ValueSerializer -
Uses of ValueSerializer in tools.jackson.databind.ext.javatime.ser
Subclasses of ValueSerializer in tools.jackson.databind.ext.javatime.serModifier and TypeClassDescriptionclass
Serializer for Java 8 temporalDuration
s.class
class
InstantSerializerBase<T extends Temporal>
class
Serializer for Java 8 temporalLocalDate
s.class
Serializer for Java 8 temporalLocalDateTime
s.class
Serializer for Java 8 temporalLocalTime
s.class
Serializer for Java 8 temporalMonthDay
s.class
Serializer for Java 8 temporalMonth
s.class
class
Serializer for Java 8 temporalOffsetTime
s.class
Serializer for Java 8 temporalYearMonth
s.class
Serializer for Java 8 temporalYear
s.class
class
Methods in tools.jackson.databind.ext.javatime.ser that return ValueSerializerModifier and TypeMethodDescriptionDurationSerializer.createContextual
(SerializationContext ctxt, BeanProperty property) -
Uses of ValueSerializer in tools.jackson.databind.ext.javatime.ser.key
Subclasses of ValueSerializer in tools.jackson.databind.ext.javatime.ser.key -
Uses of ValueSerializer in tools.jackson.databind.ext.jdk8
Subclasses of ValueSerializer in tools.jackson.databind.ext.jdk8Modifier and TypeClassDescriptionclass
DoubleStream
serializerclass
IntStream
serializerclass
class
Common typed stream serializerclass
LongStream
serializerclass
class
class
Methods in tools.jackson.databind.ext.jdk8 that return ValueSerializerModifier and TypeMethodDescriptionJdk8StreamSerializer.createContextual
(SerializationContext provider, BeanProperty property) Methods in tools.jackson.databind.ext.jdk8 with parameters of type ValueSerializerModifier and TypeMethodDescriptionprotected ReferenceTypeSerializer<Optional<?>>
Jdk8OptionalSerializer.withResolved
(BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper) Constructors in tools.jackson.databind.ext.jdk8 with parameters of type ValueSerializerModifierConstructorDescriptionprotected
Jdk8OptionalSerializer
(Jdk8OptionalSerializer base, BeanProperty property, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls) Jdk8OptionalSerializer
(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> ser) Jdk8StreamSerializer
(JavaType streamType, JavaType elemType, ValueSerializer<Object> elemSerializer) Constructor with custom serializer -
Uses of ValueSerializer in tools.jackson.databind.ext.sql
Subclasses of ValueSerializer in tools.jackson.databind.ext.sqlModifier and TypeClassDescriptionclass
Serializer implementation forBlob
to write as binary (for JSON and other formats Base64-encoded String, for binary formats as true binary).class
Compared to regularDate
serialization, we do use String representation here.class
NOTE: name wasSqlTimeSerializer
in Jackson 2.xMethods in tools.jackson.databind.ext.sql that return ValueSerializerModifier and TypeMethodDescriptionJavaSqlTypeHandlerFactory.findSerializer
(SerializationConfig config, JavaType type) -
Uses of ValueSerializer in tools.jackson.databind.module
Fields in tools.jackson.databind.module declared as ValueSerializerModifier and TypeFieldDescriptionprotected ValueSerializer<?>
SimpleModule._defaultNullKeySerializer
protected ValueSerializer<?>
SimpleModule._defaultNullValueSerializer
Fields in tools.jackson.databind.module with type parameters of type ValueSerializerModifier and TypeFieldDescriptionprotected HashMap<ClassKey,
ValueSerializer<?>> SimpleSerializers._classMappings
Class-based mappings that are used both for exact and sub-class matches.protected HashMap<ClassKey,
ValueSerializer<?>> SimpleSerializers._interfaceMappings
Interface-based matches.Methods in tools.jackson.databind.module that return ValueSerializerModifier and TypeMethodDescriptionprotected ValueSerializer<?>
SimpleSerializers._findInterfaceMapping
(Class<?> cls, ClassKey key) protected ValueSerializer<?>
SimpleSerializers._findSerializer
(SerializationConfig config, JavaType type) SimpleSerializers.findArraySerializer
(SerializationConfig config, ArrayType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) SimpleSerializers.findCollectionLikeSerializer
(SerializationConfig config, CollectionLikeType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) SimpleSerializers.findCollectionSerializer
(SerializationConfig config, CollectionType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) SimpleSerializers.findEnumSerializer
(SerializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) SimpleSerializers.findMapLikeSerializer
(SerializationConfig config, MapLikeType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, ValueSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) SimpleSerializers.findMapSerializer
(SerializationConfig config, MapType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, ValueSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) SimpleSerializers.findReferenceSerializer
(SerializationConfig config, ReferenceType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer contentTypeSerializer, ValueSerializer<Object> contentValueSerializer) SimpleSerializers.findSerializer
(SerializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) SimpleSerializers.findTreeNodeSerializer
(SerializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) Methods in tools.jackson.databind.module with parameters of type ValueSerializerModifier and TypeMethodDescriptionprotected void
SimpleSerializers._addSerializer
(Class<?> cls, ValueSerializer<?> ser) <T> SimpleModule
SimpleModule.addKeySerializer
(Class<? extends T> type, ValueSerializer<T> ser) NOTE: This method registers "default" (de)serializers only.<T> SimpleModule
SimpleModule.addSerializer
(Class<? extends T> type, ValueSerializer<T> ser) Method for adding serializer to handle values of specific type.SimpleModule.addSerializer
(ValueSerializer<?> ser) Method for adding serializer to handle type that the serializer claims to handle (seehandledType()
).SimpleSerializers.addSerializer
(Class<? extends T> type, ValueSerializer<T> ser) SimpleSerializers.addSerializer
(ValueSerializer<?> ser) Method for adding given serializer for type thathandledType()
specifies (which MUST return a non-null class; and CANNOT beObject
, as a sanity check).SimpleSerializers.findArraySerializer
(SerializationConfig config, ArrayType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) SimpleSerializers.findCollectionLikeSerializer
(SerializationConfig config, CollectionLikeType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) SimpleSerializers.findCollectionSerializer
(SerializationConfig config, CollectionType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) SimpleSerializers.findMapLikeSerializer
(SerializationConfig config, MapLikeType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, ValueSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) SimpleSerializers.findMapSerializer
(SerializationConfig config, MapType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, ValueSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) SimpleSerializers.findReferenceSerializer
(SerializationConfig config, ReferenceType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer contentTypeSerializer, ValueSerializer<Object> contentValueSerializer) SimpleModule.setDefaultNullKeySerializer
(ValueSerializer<?> ser) SimpleModule.setDefaultNullValueSerializer
(ValueSerializer<?> ser) Method parameters in tools.jackson.databind.module with type arguments of type ValueSerializerModifier and TypeMethodDescriptionSimpleSerializers.addSerializers
(List<ValueSerializer<?>> sers) Constructor parameters in tools.jackson.databind.module with type arguments of type ValueSerializer -
Uses of ValueSerializer in tools.jackson.databind.ser
Subclasses of ValueSerializer in tools.jackson.databind.serModifier and TypeClassDescriptionclass
Serializer class that can serialize Java objects that map to JSON Object output.class
Fields in tools.jackson.databind.ser declared as ValueSerializerModifier and TypeFieldDescriptionprotected ValueSerializer<Object>
BeanPropertyWriter._nullSerializer
Serializer used for writing out null values, if any: if null, null values are to be suppressed.protected ValueSerializer<Object>
AnyGetterWriter._serializer
protected ValueSerializer<Object>
BeanPropertyWriter._serializer
Serializer to use for writing out the value: null if it cannot be known statically; non-null if it can.Methods in tools.jackson.databind.ser that return ValueSerializerModifier and TypeMethodDescriptionprotected ValueSerializer<?>
BasicSerializerFactory._buildReferenceSerializer
(SerializationContext ctxt, Class<?> baseType, ReferenceType refType, BeanDescription.Supplier beanDescRef, boolean staticTyping, TypeSerializer contentTypeSerializer, ValueSerializer<Object> contentSerializer) protected ValueSerializer<?>
BeanSerializerFactory._createSerializer2
(SerializationContext ctxt, BeanDescription.Supplier beanDescRef, JavaType type, JsonFormat.Value formatOverrides, boolean staticTyping) protected ValueSerializer<Object>
BeanPropertyWriter._findAndAddDynamic
(PropertySerializerMap map, Class<?> rawType, SerializationContext provider) protected ValueSerializer<Object>
BasicSerializerFactory._findContentSerializer
(SerializationContext ctxt, Annotated a) Helper method called to try to find whether there is an annotation in the class that indicates content ("value") serializer to use.protected ValueSerializer<Object>
BasicSerializerFactory._findKeySerializer
(SerializationContext ctxt, Annotated a) Helper method called to try to find whether there is an annotation in the class that indicates key serializer to use.protected ValueSerializer<?>
BeanSerializerFactory._findUnsupportedTypeSerializer
(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) BeanSerializerBuilder.build()
Method called to createBeanSerializer
instance with all accumulated information.protected ValueSerializer<?>
BasicSerializerFactory.buildArraySerializer
(SerializationContext ctxt, ArrayType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, boolean staticTyping, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forObject[]
(and subtypes, except for String).protected ValueSerializer<?>
BasicSerializerFactory.buildCollectionSerializer
(SerializationContext ctxt, CollectionType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, boolean staticTyping, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forList
types that support efficient by-index accessprotected ValueSerializer<?>
BasicSerializerFactory.buildContainerSerializer
(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, boolean staticTyping) protected ValueSerializer<?>
BasicSerializerFactory.buildEnumSerializer
(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value effectiveFormat) BasicSerializerFactory.buildEnumSetSerializer
(JavaType enumType) protected ValueSerializer<?>
BasicSerializerFactory.buildIterableSerializer
(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value effectiveFormat, boolean staticTyping, JavaType valueType) protected ValueSerializer<?>
BasicSerializerFactory.buildIteratorSerializer
(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDesc, JsonFormat.Value formatOverrides, boolean staticTyping, JavaType valueType) protected ValueSerializer<?>
BasicSerializerFactory.buildMapEntrySerializer
(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value effectiveFormat, boolean staticTyping, JavaType keyType, JavaType valueType) protected ValueSerializer<?>
BasicSerializerFactory.buildMapSerializer
(SerializationContext ctxt, MapType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, boolean staticTyping, ValueSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forMap
types.protected ValueSerializer<Object>
BeanSerializerFactory.constructBeanOrAddOnSerializer
(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value format, boolean staticTyping) Method called to construct serializer based on checking which condition is matched: Nominal type isjava.lang.Object
: if so, return special "no type known" serializer If a known "not-POJO" type (like JDKProxy
), returnnull
If at least one logical property found, build actualBeanSerializer
If add-on type (likeIterable
) found, create appropriate serializer If one of Jackson's "well-known" annotations found, create bogus "empty Object" Serializer or, if none matched, returnnull
.BasicSerializerFactory.createKeySerializer
(SerializationContext ctxt, JavaType keyType) abstract ValueSerializer<Object>
SerializerFactory.createKeySerializer
(SerializationContext ctxt, JavaType type) Method called to create serializer to use for serializing JSON property names (which must be output asJsonToken.FIELD_NAME
) for Map that has specified declared key type, and is for specified property (or, if property is null, as root value)BeanSerializerFactory.createSerializer
(SerializationContext ctxt, JavaType origType, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) Main serializer constructor method.SerializerFactory.createSerializer
(SerializationContext ctxt, JavaType baseType) Deprecated.abstract ValueSerializer<Object>
SerializerFactory.createSerializer
(SerializationContext ctxt, JavaType baseType, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverride) Method called to create (or, for immutable serializers, reuse) a serializer for given type.default ValueSerializer<?>
Serializers.findArraySerializer
(SerializationConfig config, ArrayType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specified array type.default ValueSerializer<?>
Serializers.findCollectionLikeSerializer
(SerializationConfig config, CollectionLikeType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specified "Collection-like" type (type that acts likeCollection
, but does not implement it).default ValueSerializer<?>
Serializers.findCollectionSerializer
(SerializationConfig config, CollectionType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specifiedCollection
type.protected ValueSerializer<?>
BasicSerializerFactory.findConvertingSerializer
(SerializationContext ctxt, Annotated a, ValueSerializer<?> ser) Helper method that will check whether given annotated entity (usually class, but may also be a property accessor) indicates that aConverter
is to be used; and if so, to construct and return suitable serializer for it.default ValueSerializer<?>
Serializers.findEnumSerializer
(SerializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) Method called by serialization framework first time a serializer is needed for givenEnum
type.default ValueSerializer<?>
Serializers.findExplicitPOJOSerializer
(SerializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) Method called in case that a given type or property is declared to use shapeJsonFormat.Shape.POJO
and is expected to be serialized "as POJO", that is, as an (JSON) Object.default ValueSerializer<?>
Serializers.findMapLikeSerializer
(SerializationConfig config, MapLikeType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, ValueSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specified "Map-like" type (type that acts likeMap
, but does not implement it).default ValueSerializer<?>
Serializers.findMapSerializer
(SerializationConfig config, MapType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, ValueSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specifiedMap
type.BasicSerializerFactory.findReferenceSerializer
(SerializationContext ctxt, ReferenceType refType, BeanDescription.Supplier beanDesc, JsonFormat.Value format, boolean staticTyping) default ValueSerializer<?>
Serializers.findReferenceSerializer
(SerializationConfig config, ReferenceType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer contentTypeSerializer, ValueSerializer<Object> contentValueSerializer) Method called by serialization framework first time a serializer is needed for givenReferenceType
default ValueSerializer<?>
Serializers.findSerializer
(SerializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) Fallback ethod called by serialization framework first time a serializer is needed for given type, which is not of any more specific type (like enum, tree node, reference or container type) for which other methods are called).protected final ValueSerializer<?>
BasicSerializerFactory.findSerializerByAddonType
(SerializationContext ctxt, JavaType javaType, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, boolean staticTyping) Reflection-based serialized find method, which checks if given class implements one of recognized "add-on" interfaces.protected final ValueSerializer<?>
BasicSerializerFactory.findSerializerByAnnotations
(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef) Method called to see if one of primary per-class annotations (or related, like implementing ofJacksonSerializable
) determines the serializer to use.protected final ValueSerializer<?>
BasicSerializerFactory.findSerializerByPrimaryType
(SerializationContext ctxt, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, boolean staticTyping) Method for checking if we can determine serializer to use based on set of known primary types, checking for set of known base types (exact matches having been compared against withfindSerializerByLookup
).protected ValueSerializer<Object>
BasicSerializerFactory.findSerializerFromAnnotation
(SerializationContext ctxt, Annotated a) Helper method called to check if a class or method has an annotation (@link tools.jackson.databind.annotation.JsonSerialize#using) that tells the class to use for serialization.default ValueSerializer<?>
Serializers.findTreeNodeSerializer
(SerializationConfig config, JavaType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides) BasicSerializerFactory.getDefaultNullKeySerializer()
abstract ValueSerializer<Object>
SerializerFactory.getDefaultNullKeySerializer()
Returns serializer used to (try to) output a null key, due to an entry ofMap
having null key.BasicSerializerFactory.getDefaultNullValueSerializer()
abstract ValueSerializer<Object>
SerializerFactory.getDefaultNullValueSerializer()
BeanPropertyWriter.getSerializer()
ValueSerializerModifier.modifyArraySerializer
(SerializationConfig config, ArrayType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) Method called byDeserializerFactory
after it has constructed the standard serializer for givenArrayType
to make it possible to either replace or augment this serializer with additional functionality.ValueSerializerModifier.modifyCollectionLikeSerializer
(SerializationConfig config, CollectionLikeType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) ValueSerializerModifier.modifyCollectionSerializer
(SerializationConfig config, CollectionType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) ValueSerializerModifier.modifyEnumSerializer
(SerializationConfig config, JavaType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) ValueSerializerModifier.modifyKeySerializer
(SerializationConfig config, JavaType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) Method called byDeserializerFactory
after it has constructed the default key serializer to use for serializingMap
keys of given type.ValueSerializerModifier.modifyMapLikeSerializer
(SerializationConfig config, MapLikeType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) ValueSerializerModifier.modifyMapSerializer
(SerializationConfig config, MapType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) ValueSerializerModifier.modifySerializer
(SerializationConfig config, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) Method called byBeanSerializerFactory
after constructing default bean serializer instance with properties collected and ordered earlier.SerializationContextExt.serializerInstance
(Annotated annotated, Object serDef) SerializerCache.typedValueSerializer
(Class<?> cls) SerializerCache.typedValueSerializer
(JavaType type) SerializerCache.untypedValueSerializer
(Class<?> type) Method that checks if the shared (and hence, synchronized) lookup Map might have untyped serializer for given type.SerializerCache.untypedValueSerializer
(JavaType type) BeanSerializer.unwrappingSerializer
(NameTransformer unwrapper) UnrolledBeanSerializer.unwrappingSerializer
(NameTransformer unwrapper) BeanSerializer.withIgnoredProperties
(Set<String> toIgnore) UnrolledBeanSerializer.withIgnoredProperties
(Set<String> toIgnore) Methods in tools.jackson.databind.ser with parameters of type ValueSerializerModifier and TypeMethodDescriptionprotected ValueSerializer<?>
BasicSerializerFactory._buildReferenceSerializer
(SerializationContext ctxt, Class<?> baseType, ReferenceType refType, BeanDescription.Supplier beanDescRef, boolean staticTyping, TypeSerializer contentTypeSerializer, ValueSerializer<Object> contentSerializer) protected BeanPropertyWriter
PropertyBuilder._constructPropertyWriter
(BeanPropertyDefinition propDef, AnnotatedMember member, Annotations contextAnnotations, JavaType declaredType, ValueSerializer<?> ser, TypeSerializer typeSer, JavaType serType, boolean suppressNulls, Object suppressableValue, Class<?>[] includeInViews) Overridable factory method for actual construction ofBeanPropertyWriter
; often needed if subclassingPropertyBuilder.buildWriter(tools.jackson.databind.SerializationContext, tools.jackson.databind.introspect.BeanPropertyDefinition, tools.jackson.databind.JavaType, tools.jackson.databind.ValueSerializer<?>, tools.jackson.databind.jsontype.TypeSerializer, tools.jackson.databind.jsontype.TypeSerializer, tools.jackson.databind.introspect.AnnotatedMember, boolean)
method.protected boolean
BeanPropertyWriter._handleSelfReference
(Object bean, JsonGenerator g, SerializationContext ctxt, ValueSerializer<?> ser) Method called to handle a direct self-reference through this property.void
SerializerCache.addAndResolveNonTypedSerializer
(Class<?> rawType, JavaType fullType, ValueSerializer<Object> ser, SerializationContext provider) Another alternative that will cover both access via raw type and matching fully resolved type, in one fell swoop.void
SerializerCache.addAndResolveNonTypedSerializer
(Class<?> type, ValueSerializer<Object> ser, SerializationContext provider) void
SerializerCache.addAndResolveNonTypedSerializer
(JavaType type, ValueSerializer<Object> ser, SerializationContext provider) void
SerializerCache.addTypedSerializer
(Class<?> cls, ValueSerializer<Object> ser) void
SerializerCache.addTypedSerializer
(JavaType type, ValueSerializer<Object> ser) Method called if none of lookups succeeded, and caller had to construct a serializer.void
BeanPropertyWriter.assignNullSerializer
(ValueSerializer<Object> nullSer) Method called to assign null value serializer for propertyvoid
BeanPropertyWriter.assignSerializer
(ValueSerializer<Object> ser) Method called to assign value serializer for propertyprotected ValueSerializer<?>
BasicSerializerFactory.buildArraySerializer
(SerializationContext ctxt, ArrayType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, boolean staticTyping, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forObject[]
(and subtypes, except for String).BasicSerializerFactory.buildCollectionSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> valueSerializer) protected ValueSerializer<?>
BasicSerializerFactory.buildCollectionSerializer
(SerializationContext ctxt, CollectionType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, boolean staticTyping, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forList
types that support efficient by-index accessBasicSerializerFactory.buildIndexedListSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> valueSerializer) protected ValueSerializer<?>
BasicSerializerFactory.buildMapSerializer
(SerializationContext ctxt, MapType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, boolean staticTyping, ValueSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forMap
types.protected BeanPropertyWriter
PropertyBuilder.buildWriter
(SerializationContext ctxt, BeanPropertyDefinition propDef, JavaType declaredType, ValueSerializer<?> ser, TypeSerializer typeSer, TypeSerializer contentTypeSer, AnnotatedMember am, boolean defaultUseStaticTyping) default ValueSerializer<?>
Serializers.findArraySerializer
(SerializationConfig config, ArrayType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specified array type.default ValueSerializer<?>
Serializers.findCollectionLikeSerializer
(SerializationConfig config, CollectionLikeType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specified "Collection-like" type (type that acts likeCollection
, but does not implement it).default ValueSerializer<?>
Serializers.findCollectionSerializer
(SerializationConfig config, CollectionType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specifiedCollection
type.protected ValueSerializer<?>
BasicSerializerFactory.findConvertingSerializer
(SerializationContext ctxt, Annotated a, ValueSerializer<?> ser) Helper method that will check whether given annotated entity (usually class, but may also be a property accessor) indicates that aConverter
is to be used; and if so, to construct and return suitable serializer for it.default ValueSerializer<?>
Serializers.findMapLikeSerializer
(SerializationConfig config, MapLikeType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, ValueSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specified "Map-like" type (type that acts likeMap
, but does not implement it).default ValueSerializer<?>
Serializers.findMapSerializer
(SerializationConfig config, MapType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, ValueSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, ValueSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specifiedMap
type.default ValueSerializer<?>
Serializers.findReferenceSerializer
(SerializationConfig config, ReferenceType type, BeanDescription.Supplier beanDescRef, JsonFormat.Value formatOverrides, TypeSerializer contentTypeSerializer, ValueSerializer<Object> contentValueSerializer) Method called by serialization framework first time a serializer is needed for givenReferenceType
ValueSerializerModifier.modifyArraySerializer
(SerializationConfig config, ArrayType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) Method called byDeserializerFactory
after it has constructed the standard serializer for givenArrayType
to make it possible to either replace or augment this serializer with additional functionality.ValueSerializerModifier.modifyCollectionLikeSerializer
(SerializationConfig config, CollectionLikeType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) ValueSerializerModifier.modifyCollectionSerializer
(SerializationConfig config, CollectionType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) ValueSerializerModifier.modifyEnumSerializer
(SerializationConfig config, JavaType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) ValueSerializerModifier.modifyKeySerializer
(SerializationConfig config, JavaType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) Method called byDeserializerFactory
after it has constructed the default key serializer to use for serializingMap
keys of given type.ValueSerializerModifier.modifyMapLikeSerializer
(SerializationConfig config, MapLikeType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) ValueSerializerModifier.modifyMapSerializer
(SerializationConfig config, MapType valueType, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) ValueSerializerModifier.modifySerializer
(SerializationConfig config, BeanDescription.Supplier beanDesc, ValueSerializer<?> serializer) Method called byBeanSerializerFactory
after constructing default bean serializer instance with properties collected and ordered earlier.void
SerializationContextExt.serializePolymorphic
(JsonGenerator gen, Object value, JavaType rootType, ValueSerializer<Object> valueSer, TypeSerializer typeSer) Alternate serialization call used for polymorphic types, whenTypeSerializer
is already known, but the actual serializer may or may not be.void
SerializationContextExt.serializeValue
(JsonGenerator gen, Object value, JavaType rootType, ValueSerializer<Object> ser) The method to be called byObjectWriter
for serializing given value (assumed to be of specified root type, instead of runtime type of value), when it may know specificValueSerializer
to use.final SerializerFactory
BasicSerializerFactory.withNullKeySerializer
(ValueSerializer<?> nks) abstract SerializerFactory
SerializerFactory.withNullKeySerializer
(ValueSerializer<?> nks) final SerializerFactory
BasicSerializerFactory.withNullValueSerializer
(ValueSerializer<?> nvs) abstract SerializerFactory
SerializerFactory.withNullValueSerializer
(ValueSerializer<?> nvs) Constructors in tools.jackson.databind.ser with parameters of type ValueSerializerModifierConstructorDescriptionAnyGetterWriter
(BeanPropertyWriter parent, BeanProperty property, AnnotatedMember accessor, ValueSerializer<?> serializer) BeanPropertyWriter
(BeanPropertyDefinition propDef, AnnotatedMember member, Annotations contextAnnotations, JavaType declaredType, ValueSerializer<?> ser, TypeSerializer typeSer, JavaType serType, boolean suppressNulls, Object suppressableValue, Class<?>[] includeInViews) protected
VirtualBeanPropertyWriter
(BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType, ValueSerializer<?> ser, TypeSerializer typeSer, JavaType serType, JsonInclude.Value inclusion, Class<?>[] includeInViews) Pass-through constructor that may be used by sub-classes that want full control over implementation.Constructor parameters in tools.jackson.databind.ser with type arguments of type ValueSerializerModifierConstructorDescriptionprotected
-
Uses of ValueSerializer in tools.jackson.databind.ser.bean
Subclasses of ValueSerializer in tools.jackson.databind.ser.beanModifier and TypeClassDescriptionclass
Specialized POJO serializer that differs fromBeanSerializer
in that instead of producing a JSON Object it will output a JSON Array, omitting field names, and serializing values in specified serialization order.class
Base class both for the standard bean serializer, and couple of variants that only differ in small details.class
Specialization ofBeanAsArraySerializer
, optimized for handling small number of properties where calls to property handlers can be "unrolled" by eliminated looping.class
Methods in tools.jackson.databind.ser.bean that return ValueSerializerModifier and TypeMethodDescriptionprotected ValueSerializer<Object>
UnwrappingBeanPropertyWriter._findAndAddDynamic
(PropertySerializerMap map, Class<?> type, SerializationContext provider) BeanSerializerBase.createContextual
(SerializationContext ctxt, BeanProperty property) protected ValueSerializer<Object>
BeanSerializerBase.findConvertingSerializer
(SerializationContext provider, BeanPropertyWriter prop) Helper method that can be used to see if specified property is annotated to indicate use of a converter for property value (in case of container types, it is container type itself, not key or content type).BeanAsArraySerializer.unwrappingSerializer
(NameTransformer transformer) abstract ValueSerializer<Object>
BeanSerializerBase.unwrappingSerializer
(NameTransformer unwrapper) Lets force sub-classes to implement this, to avoid accidental missing of handling...UnrolledBeanAsArraySerializer.unwrappingSerializer
(NameTransformer transformer) UnwrappingBeanSerializer.unwrappingSerializer
(NameTransformer transformer) Methods in tools.jackson.databind.ser.bean with parameters of type ValueSerializerModifier and TypeMethodDescriptionvoid
UnwrappingBeanPropertyWriter.assignSerializer
(ValueSerializer<Object> ser) -
Uses of ValueSerializer in tools.jackson.databind.ser.impl
Subclasses of ValueSerializer in tools.jackson.databind.ser.implModifier and TypeClassDescriptionclass
Special bogus "serializer" that will throwDatabindException
if itsFailingSerializer.serialize(java.lang.Object, tools.jackson.core.JsonGenerator, tools.jackson.databind.SerializationContext)
gets invoked.final class
Simple serializer that will call configured type serializer, passing in configured data serializer, and exposing it all as a simple serializer.class
class
Special bogus "serializer" that will throwInvalidDefinitionException
if itsUnsupportedTypeSerializer.serialize(java.lang.Object, tools.jackson.core.JsonGenerator, tools.jackson.databind.SerializationContext)
gets invoked.Fields in tools.jackson.databind.ser.impl declared as ValueSerializerModifier and TypeFieldDescriptionprotected final ValueSerializer<Object>
TypeWrappedSerializer._serializer
final ValueSerializer<Object>
ObjectIdWriter.serializer
Serializer used for serializing id values.final ValueSerializer<Object>
PropertySerializerMap.SerializerAndMapResult.serializer
Methods in tools.jackson.databind.ser.impl that return ValueSerializerModifier and TypeMethodDescriptionTypeWrappedSerializer.createContextual
(SerializationContext provider, BeanProperty property) abstract ValueSerializer<Object>
PropertySerializerMap.serializerFor
(Class<?> type) Main lookup method.ReadOnlyClassToSerializerMap.typedValueSerializer
(Class<?> rawType) ReadOnlyClassToSerializerMap.typedValueSerializer
(JavaType type) ReadOnlyClassToSerializerMap.untypedValueSerializer
(Class<?> rawType) ReadOnlyClassToSerializerMap.untypedValueSerializer
(JavaType type) TypeWrappedSerializer.valueSerializer()
Methods in tools.jackson.databind.ser.impl with parameters of type ValueSerializerModifier and TypeMethodDescriptionPropertySerializerMap.addSerializer
(Class<?> type, ValueSerializer<Object> serializer) Method that can be used to 'register' a serializer that caller has resolved without help of this map.PropertySerializerMap.addSerializer
(JavaType type, ValueSerializer<Object> serializer) abstract PropertySerializerMap
PropertySerializerMap.newWith
(Class<?> type, ValueSerializer<Object> serializer) ObjectIdWriter.withSerializer
(ValueSerializer<?> ser) Method parameters in tools.jackson.databind.ser.impl with type arguments of type ValueSerializerModifier and TypeMethodDescriptionPropertySerializerMap.findAndAddSecondarySerializer
(Class<?> type, SerializationContext provider, BeanProperty property, UnaryOperator<ValueSerializer<Object>> serTransformer) PropertySerializerMap.findAndAddSecondarySerializer
(JavaType type, SerializationContext provider, BeanProperty property, UnaryOperator<ValueSerializer<Object>> serTransformer) static ReadOnlyClassToSerializerMap
ReadOnlyClassToSerializerMap.from
(SerializerCache shared, LookupCache<TypeKey, ValueSerializer<Object>> src) Factory method for constructing an instance.Constructors in tools.jackson.databind.ser.impl with parameters of type ValueSerializerModifierConstructorDescriptionprotected
ObjectIdWriter
(JavaType t, SerializableString propName, ObjectIdGenerator<?> gen, ValueSerializer<?> ser, boolean alwaysAsId) SerializerAndMapResult
(ValueSerializer<Object> serializer, PropertySerializerMap map) TypeWrappedSerializer
(TypeSerializer typeSer, ValueSerializer<?> ser) Constructor parameters in tools.jackson.databind.ser.impl with type arguments of type ValueSerializerModifierConstructorDescriptionprotected
ReadOnlyClassToSerializerMap
(SerializerCache shared, LookupCache<TypeKey, ValueSerializer<Object>> src) -
Uses of ValueSerializer in tools.jackson.databind.ser.jackson
Subclasses of ValueSerializer in tools.jackson.databind.ser.jacksonModifier and TypeClassDescriptionclass
Generic handler for types that implementJacksonSerializable
.class
Serializer class that can serialize Object that have aJsonValue
annotation to indicate that serialization should be done by calling the method annotated, and serializing result it returns.class
This is a simple dummy serializer that will just output raw values by calling toString() on value to serialize.class
We also want to directly support serialization ofTokenBuffer
; and since it is part of core package, it cannot implementJacksonSerializable
(which is only included in the mapper package)Methods in tools.jackson.databind.ser.jackson that return ValueSerializerModifier and TypeMethodDescriptionprotected ValueSerializer<Object>
JsonValueSerializer._findSerializer
(SerializationContext ctxt, Object value) protected static ValueSerializer<Object>
JsonValueSerializer._withIgnoreProperties
(ValueSerializer<?> ser, Set<String> ignoredProperties) Internal helper that configures the providedser
to ignore properties specified byJsonIgnoreProperties
.JsonValueSerializer.createContextual
(SerializationContext ctxt, BeanProperty property) We can try to find the actual serializer for value, if we can statically figure out what the result type must be.Methods in tools.jackson.databind.ser.jackson with parameters of type ValueSerializerModifier and TypeMethodDescriptionprotected static ValueSerializer<Object>
JsonValueSerializer._withIgnoreProperties
(ValueSerializer<?> ser, Set<String> ignoredProperties) Internal helper that configures the providedser
to ignore properties specified byJsonIgnoreProperties
.static JsonValueSerializer
JsonValueSerializer.construct
(SerializationConfig config, JavaType nominalType, JavaType valueType, boolean staticTyping, TypeSerializer vts, ValueSerializer<?> ser, AnnotatedMember accessor) protected boolean
JsonValueSerializer.isNaturalTypeWithStdHandling
(Class<?> rawType, ValueSerializer<?> ser) JsonValueSerializer.withResolved
(BeanProperty property, TypeSerializer vts, ValueSerializer<?> ser, boolean forceTypeInfo) Constructors in tools.jackson.databind.ser.jackson with parameters of type ValueSerializerModifierConstructorDescriptionprotected
JsonValueSerializer
(JavaType nominalType, JavaType valueType, boolean staticTyping, TypeSerializer vts, ValueSerializer<?> ser, AnnotatedMember accessor, Set<String> ignoredProperties) protected
JsonValueSerializer
(JsonValueSerializer src, BeanProperty property, TypeSerializer vts, ValueSerializer<?> ser, boolean forceTypeInfo) -
Uses of ValueSerializer in tools.jackson.databind.ser.jdk
Subclasses of ValueSerializer in tools.jackson.databind.ser.jdkModifier and TypeClassDescriptionclass
final class
Serializer used for primitive boolean, as well as java.util.Boolean wrapper type.class
Unlike other integral number array serializers, we do not just print out byte values as numbers.class
class
Fallback serializer for cases where Collection is not known to be of type for which more specializer serializer exists (such as index-accessible List).class
class
Standard serializer used forEnum
types.class
final class
This is an optimized serializer for Lists that can be efficiently traversed by index (as opposed to others, such asLinkedList
that cannot}.final class
Efficient implement for serializingList
s that contains Strings and are random-accessible.class
Simple serializer forInetAddress
.class
Simple serializer forInetSocketAddress
.class
class
class
Standard serializer forCalendar
.class
For efficiency, we will serialize Dates as longs, instead of potentially more readable Strings.static class
static class
Character arrays are different from other integral number arrays in that they are most likely to be textual data, and should be written as Strings, not arrays of entries.static class
static class
static class
static class
static class
protected static class
Intermediate base class used for cases where we may add type information (excludes boolean/int/double arrays).static class
This is a "chameleon" style multi-type key serializer for simple standard JDK types.static class
Key serializer used when key type is not known statically, and actual key serializer needs to be dynamically located.static class
Specialized instance to use for Enum keys, as per [databind#1322]static class
Simple and fast key serializer when keys are Strings.static class
static class
static class
static class
class
"Combo" serializer used for JDK types that work almost likeToStringSerializer
.class
Serializer used to serialize Map.Entry as POJOs: that is, as if introspected as POJOs so that there's intermediate "key" and "value" properties.class
class
Standard serializer implementation for serializing {link java.util.Map} types.class
As a fallback, we may need to use this serializer for other types ofNumber
s: both custom types and "big" numbers likeBigInteger
andBigDecimal
.static class
Base class for actual primitive/wrapper value serializers.static class
This is the special serializer for regularDouble
s (and primitive doubles)static class
static class
This is the special serializer for regularInteger
s (and primitive ints)static class
Similar toNumberSerializers.IntegerSerializer
, but will not cast to Integer: instead, cast is toNumber
, and conversion is by callingNumber.intValue()
.static class
static class
class
Generic serializer for Object arrays (Object[]
).class
StaticListSerializerBase<T extends Collection<?>>
Intermediate base class for Lists, Collections and Arrays that contain static (non-dynamic) value types.class
Standard serializer used forString[]
values.class
Efficient implement for serializingCollection
s that contain Strings.final class
This is the special serializer for regularString
s.class
class
SpecializedValueSerializer
to outputUUID
s.Fields in tools.jackson.databind.ser.jdk declared as ValueSerializerModifier and TypeFieldDescriptionprotected ValueSerializer<Object>
ObjectArraySerializer._elementSerializer
Value serializer to use, if it can be statically determined.protected final ValueSerializer<Object>
StringArraySerializer._elementSerializer
Value serializer to use, if it's not the standard one (if it is we can optimize serialization significantly)protected ValueSerializer<Object>
MapEntrySerializer._keySerializer
Key serializer to use, if it can be statically determinedprotected ValueSerializer<Object>
MapProperty._keySerializer
protected ValueSerializer<Object>
MapSerializer._keySerializer
Key serializer to use, if it can be statically determinedprotected ValueSerializer<Object>
MapEntrySerializer._valueSerializer
Value serializer to use, if it can be statically determinedprotected ValueSerializer<Object>
MapProperty._valueSerializer
protected ValueSerializer<Object>
MapSerializer._valueSerializer
Value serializer to use, if it can be statically determinedprotected static final ValueSerializer<Object>
JDKKeySerializers.DEFAULT_STRING_SERIALIZER
Fields in tools.jackson.databind.ser.jdk with type parameters of type ValueSerializerModifier and TypeFieldDescriptionprotected static final HashMap<String,
ValueSerializer<?>> JDKArraySerializers._arraySerializers
protected static final HashMap<String,
ValueSerializer<?>> JDKCoreSerializers._concrete
Since these are all JDK classes, we shouldn't have to worry about ClassLoader used to load them.Methods in tools.jackson.databind.ser.jdk that return ValueSerializerModifier and TypeMethodDescriptionprotected ValueSerializer<Object>
JDKKeySerializers.Dynamic._findAndAddDynamic
(PropertySerializerMap map, Class<?> type, SerializationContext provider) IndexedStringListSerializer._withResolved
(BeanProperty prop, Boolean unwrapSingle) JDKArraySerializers.BooleanArraySerializer._withResolved
(BeanProperty prop, Boolean unwrapSingle) JDKArraySerializers.DoubleArraySerializer._withResolved
(BeanProperty prop, Boolean unwrapSingle) JDKArraySerializers.FloatArraySerializer._withResolved
(BeanProperty prop, Boolean unwrapSingle) JDKArraySerializers.IntArraySerializer._withResolved
(BeanProperty prop, Boolean unwrapSingle) JDKArraySerializers.LongArraySerializer._withResolved
(BeanProperty prop, Boolean unwrapSingle) JDKArraySerializers.ShortArraySerializer._withResolved
(BeanProperty prop, Boolean unwrapSingle) ObjectArraySerializer._withResolved
(BeanProperty prop, Boolean unwrapSingle) abstract ValueSerializer<?>
StaticListSerializerBase._withResolved
(BeanProperty prop, Boolean unwrapSingle) StringArraySerializer._withResolved
(BeanProperty prop, Boolean unwrapSingle) StringCollectionSerializer._withResolved
(BeanProperty prop, Boolean unwrapSingle) static ValueSerializer<?>
NumberSerializer.bigDecimalAsStringSerializer()
BooleanSerializer.createContextual
(SerializationContext serializers, BeanProperty property) DateTimeSerializerBase.createContextual
(SerializationContext serializers, BeanProperty property) EnumSerializer.createContextual
(SerializationContext ctxt, BeanProperty property) To support some level of per-property configuration, we will need to make things contextual.InetAddressSerializer.createContextual
(SerializationContext ctxt, BeanProperty property) MapEntrySerializer.createContextual
(SerializationContext provider, BeanProperty property) MapSerializer.createContextual
(SerializationContext ctxt, BeanProperty property) NumberSerializer.createContextual
(SerializationContext prov, BeanProperty property) NumberSerializers.Base.createContextual
(SerializationContext prov, BeanProperty property) ObjectArraySerializer.createContextual
(SerializationContext ctxt, BeanProperty property) StaticListSerializerBase.createContextual
(SerializationContext serializers, BeanProperty property) StringArraySerializer.createContextual
(SerializationContext provider, BeanProperty property) UUIDSerializer.createContextual
(SerializationContext serializers, BeanProperty property) static final ValueSerializer<?>
Method called byBasicSerializerFactory
to find one of serializers provided here.static final ValueSerializer<?>
Method called byBasicSerializerFactory
to find one of serializers provided here.static final ValueSerializer<?>
static ValueSerializer<?>
JDKArraySerializers.findStandardImpl
(Class<?> cls) Accessor for checking to see if there is a standard serializer for given primitive value type.JDKArraySerializers.BooleanArraySerializer.getContentSerializer()
JDKArraySerializers.DoubleArraySerializer.getContentSerializer()
JDKArraySerializers.FloatArraySerializer.getContentSerializer()
JDKArraySerializers.IntArraySerializer.getContentSerializer()
JDKArraySerializers.LongArraySerializer.getContentSerializer()
JDKArraySerializers.ShortArraySerializer.getContentSerializer()
MapEntrySerializer.getContentSerializer()
MapSerializer.getContentSerializer()
ObjectArraySerializer.getContentSerializer()
StringArraySerializer.getContentSerializer()
static ValueSerializer<Object>
JDKKeySerializers.getFallbackKeySerializer
(SerializationConfig config, Class<?> rawKeyType, AnnotatedClass annotatedClass) Method called if no specified key serializer was located; will return a "default" key serializer initialized byJDKKeySerializers.EnumKeySerializer.construct(Class, EnumValues, EnumValues)
MapSerializer.getKeySerializer()
Accessor for currently assigned key serializer.static ValueSerializer<Object>
JDKKeySerializers.getStdKeySerializer
(SerializationConfig config, Class<?> rawKeyType, boolean useDefault) Methods in tools.jackson.databind.ser.jdk with parameters of type ValueSerializerModifier and TypeMethodDescriptionstatic MapSerializer
MapSerializer.construct
(JavaType mapType, boolean staticValueType, TypeSerializer vts, ValueSerializer<Object> keySerializer, ValueSerializer<Object> valueSerializer, Object filterId, Set<String> ignoredEntries, Set<String> includedEntries) void
MapProperty.reset
(Object key, Object value, ValueSerializer<Object> keySer, ValueSerializer<Object> valueSer) Initialization method that needs to be called before passing property to filter.void
CollectionSerializer.serializeContentsUsing
(Collection<?> value, JsonGenerator g, SerializationContext provider, ValueSerializer<Object> ser) void
IndexedListSerializer.serializeContentsUsing
(List<?> value, JsonGenerator jgen, SerializationContext provider, ValueSerializer<Object> ser) void
ObjectArraySerializer.serializeContentsUsing
(Object[] value, JsonGenerator g, SerializationContext provider, ValueSerializer<Object> ser) void
MapSerializer.serializeEntriesUsing
(Map<?, ?> value, JsonGenerator gen, SerializationContext provider, ValueSerializer<Object> ser) Method called to serialize fields, when the value type is statically known, so that value serializer is passed and does not need to be fetched from provider.protected ReferenceTypeSerializer<AtomicReference<?>>
AtomicReferenceSerializer.withResolved
(BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper) protected CollectionSerializer
CollectionSerializer.withResolved
(BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) protected EnumSetSerializer
EnumSetSerializer.withResolved
(BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) IndexedListSerializer.withResolved
(BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) IterableSerializer.withResolved
(BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) IteratorSerializer.withResolved
(BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) MapEntrySerializer.withResolved
(BeanProperty property, ValueSerializer<?> keySerializer, ValueSerializer<?> valueSerializer, Object suppressableValue, boolean suppressNulls) protected MapSerializer
MapSerializer.withResolved
(BeanProperty property, ValueSerializer<?> keySerializer, ValueSerializer<?> valueSerializer, Set<String> ignored, Set<String> included, boolean sortKeys) ObjectArraySerializer.withResolved
(BeanProperty prop, TypeSerializer vts, ValueSerializer<?> ser, Boolean unwrapSingle) Method parameters in tools.jackson.databind.ser.jdk with type arguments of type ValueSerializerModifier and TypeMethodDescriptionstatic void
NumberSerializers.addAll
(Map<String, ValueSerializer<?>> allDeserializers) Constructors in tools.jackson.databind.ser.jdk with parameters of type ValueSerializerModifierConstructorDescriptionprotected
AtomicReferenceSerializer
(AtomicReferenceSerializer base, BeanProperty property, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls) AtomicReferenceSerializer
(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> ser) CollectionSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> valueSerializer) protected
CollectionSerializer
(CollectionSerializer src, TypeSerializer vts, ValueSerializer<?> valueSerializer, Boolean unwrapSingle, BeanProperty property) EnumSetSerializer
(EnumSetSerializer src, TypeSerializer vts, ValueSerializer<?> valueSerializer, Boolean unwrapSingle, BeanProperty property) IndexedListSerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> valueSerializer) IndexedListSerializer
(IndexedListSerializer src, TypeSerializer vts, ValueSerializer<?> valueSerializer, Boolean unwrapSingle, BeanProperty property) IterableSerializer
(IterableSerializer src, TypeSerializer vts, ValueSerializer<?> valueSerializer, Boolean unwrapSingle, BeanProperty property) IteratorSerializer
(IteratorSerializer src, TypeSerializer vts, ValueSerializer<?> valueSerializer, Boolean unwrapSingle, BeanProperty property) protected
MapEntrySerializer
(MapEntrySerializer src, BeanProperty property, TypeSerializer vts, ValueSerializer<?> keySer, ValueSerializer<?> valueSer, Object suppressableValue, boolean suppressNulls) protected
MapSerializer
(Set<String> ignoredEntries, Set<String> includedEntries, JavaType keyType, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts, ValueSerializer<?> keySerializer, ValueSerializer<?> valueSerializer) protected
MapSerializer
(MapSerializer src, BeanProperty property, ValueSerializer<?> keySerializer, ValueSerializer<?> valueSerializer, Set<String> ignoredEntries, Set<String> includedEntries) ObjectArraySerializer
(JavaType elemType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> elementSerializer) ObjectArraySerializer
(ObjectArraySerializer src, BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) StringArraySerializer
(StringArraySerializer src, BeanProperty prop, ValueSerializer<?> ser, Boolean unwrapSingle) -
Uses of ValueSerializer in tools.jackson.databind.ser.std
Subclasses of ValueSerializer in tools.jackson.databind.ser.stdModifier and TypeClassDescriptionclass
Intermediate base class for serializers used for various Java arrays.class
Base class for serializers that will output contents as JSON arrays; typically serializers used forCollection
and array types.class
This is a simple dummy serializer that will just output literal JSON null value whenever serialization is requested.class
Base implementation for values ofReferenceType
.class
Intermediate base class for serializers used for serializing types that contain element(s) of other types, such as arrays,Collection
s (Lists
,Sets
etc) andMap
s and iterable things (Iterator
s).class
Serializer implementation where given Java type is first converted to an intermediate "delegate type" (using a configuredConverter
, and then this delegate value is serialized by Jackson.class
Base class for standard serializers that are not (necessarily) container types but that similarly handle content that may vary in ways to require dynamic lookups.class
class
Base class used by all standard serializers, and can also be used for custom serializers (in fact, this is the recommended base class to use).class
Simple "bogus" serializer that will just serialize an empty Object for any given value.final class
Simple general purpose serializer, useful for any type for whichObject.toString()
returns the desired String serialization value.class
Intermediate base class that serves as base for standardToStringSerializer
as well as for custom subtypes that want to add processing for converting from value to output into itsString
representation (whereas standard version simply calls value object'stoString()
method).Fields in tools.jackson.databind.ser.std declared as ValueSerializerModifier and TypeFieldDescriptionprotected final ValueSerializer<Object>
StdDelegatingSerializer._delegateSerializer
Underlying serializer for typeT
.protected final ValueSerializer<Object>
AsArraySerializerBase._elementSerializer
Value serializer to use, if it can be statically determinedprotected final ValueSerializer<Object>
StdDynamicSerializer._valueSerializer
Eagerly fetched serializer for actual value contained or referenced, if fetched.Methods in tools.jackson.databind.ser.std that return ValueSerializerModifier and TypeMethodDescriptionprotected ValueSerializer<Object>
StdContainerSerializer._findAndAddDynamic
(SerializationContext ctxt, Class<?> type) protected ValueSerializer<Object>
StdContainerSerializer._findAndAddDynamic
(SerializationContext ctxt, JavaType type) protected final ValueSerializer<Object>
StdDynamicSerializer._findAndAddDynamic
(SerializationContext ctxt, Class<?> type) protected final ValueSerializer<Object>
StdDynamicSerializer._findAndAddDynamic
(SerializationContext ctxt, Class<?> type, UnaryOperator<ValueSerializer<Object>> serTransformer) protected final ValueSerializer<Object>
StdDynamicSerializer._findAndAddDynamic
(SerializationContext ctxt, JavaType type) protected final ValueSerializer<Object>
StdDynamicSerializer._findAndAddDynamic
(SerializationContext ctxt, JavaType type, UnaryOperator<ValueSerializer<Object>> serTransformer) protected ValueSerializer<Object>
StdDelegatingSerializer._findSerializer
(Object value, SerializationContext ctxt) Helper method used for locating serializer to use in dynamic use case, where actual type value gets converted to is not specified beyond basicObject
, and where serializer needs to be located dynamically based on actual value type.abstract ValueSerializer<?>
ArraySerializerBase._withResolved
(BeanProperty prop, Boolean unwrapSingle) ArraySerializerBase.createContextual
(SerializationContext serializers, BeanProperty property) AsArraySerializerBase.createContextual
(SerializationContext ctxt, BeanProperty property) This method is needed to resolve contextual annotations like per-property overrides, as well as do recursive call tocreateContextual
of content serializer, if known statically.ReferenceTypeSerializer.createContextual
(SerializationContext ctxt, BeanProperty property) StdDelegatingSerializer.createContextual
(SerializationContext ctxt, BeanProperty property) protected ValueSerializer<?>
StdSerializer.findAnnotatedContentSerializer
(SerializationContext serializers, BeanProperty property) Convenience method for finding out possibly configured content value serializer.protected ValueSerializer<?>
StdSerializer.findContextualConvertingSerializer
(SerializationContext provider, BeanProperty prop, ValueSerializer<?> existingSerializer) Helper method that can be used to see if specified property has annotation indicating that a converter is to be used for contained values (contents of structured types; array/List/Map values)AsArraySerializerBase.getContentSerializer()
abstract ValueSerializer<?>
StdContainerSerializer.getContentSerializer()
Accessor for serializer used for serializing contents (List and array elements, Map values etc) of the container for which this serializer is used, if it is known statically.StdDelegatingSerializer.getDelegatee()
ReferenceTypeSerializer.unwrappingSerializer
(NameTransformer transformer) Methods in tools.jackson.databind.ser.std with parameters of type ValueSerializerModifier and TypeMethodDescriptionprotected ValueSerializer<?>
StdSerializer.findContextualConvertingSerializer
(SerializationContext provider, BeanProperty prop, ValueSerializer<?> existingSerializer) Helper method that can be used to see if specified property has annotation indicating that a converter is to be used for contained values (contents of structured types; array/List/Map values)protected boolean
StdSerializer.isDefaultSerializer
(ValueSerializer<?> serializer) Method that can be called to determine if given serializer is the default serializer Jackson uses; as opposed to a custom serializer installed by a module or calling application.protected void
StdSerializer.visitArrayFormat
(JsonFormatVisitorWrapper visitor, JavaType typeHint, ValueSerializer<?> itemSerializer, JavaType itemType) protected StdDelegatingSerializer
StdDelegatingSerializer.withDelegate
(Converter<Object, ?> converter, JavaType delegateType, ValueSerializer<?> delegateSerializer, BeanProperty prop) Method used for creating resolved contextual instances.protected abstract AsArraySerializerBase<T>
AsArraySerializerBase.withResolved
(BeanProperty property, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) protected abstract ReferenceTypeSerializer<T>
ReferenceTypeSerializer.withResolved
(BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper) Mutant factory method called when changes are needed; should construct newly configured instance with new values as indicated.Method parameters in tools.jackson.databind.ser.std with type arguments of type ValueSerializerModifier and TypeMethodDescriptionprotected final ValueSerializer<Object>
StdDynamicSerializer._findAndAddDynamic
(SerializationContext ctxt, Class<?> type, UnaryOperator<ValueSerializer<Object>> serTransformer) protected final ValueSerializer<Object>
StdDynamicSerializer._findAndAddDynamic
(SerializationContext ctxt, JavaType type, UnaryOperator<ValueSerializer<Object>> serTransformer) Constructors in tools.jackson.databind.ser.std with parameters of type ValueSerializerModifierConstructorDescriptionprotected
AsArraySerializerBase
(Class<?> cls, JavaType elementType, boolean staticTyping, TypeSerializer vts, ValueSerializer<?> elementSerializer) Non-contextual, "blueprint" constructor typically called when the first instance is created, without knowledge of property it was used via.protected
AsArraySerializerBase
(Class<?> cls, JavaType elementType, boolean staticTyping, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle) General purpose constructor.protected
AsArraySerializerBase
(Class<?> cls, JavaType elementType, boolean staticTyping, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle, BeanProperty property) General purpose constructor.protected
AsArraySerializerBase
(AsArraySerializerBase<?> src, TypeSerializer vts, ValueSerializer<?> elementSerializer, Boolean unwrapSingle, BeanProperty property) protected
ReferenceTypeSerializer
(ReferenceTypeSerializer<?> base, BeanProperty property, TypeSerializer vts, ValueSerializer<?> valueSer, NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls) ReferenceTypeSerializer
(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, ValueSerializer<Object> ser) StdDelegatingSerializer
(Converter<Object, ?> converter, JavaType delegateType, ValueSerializer<?> delegateSerializer, BeanProperty prop) protected
StdDynamicSerializer
(JavaType type, BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer) protected
StdDynamicSerializer
(StdDynamicSerializer<?> src, BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer)
JsonFormat.Value
argument