Top Description Fields Constructors Methods
tools.jackson.databind.ser.std

public abstract Class StdDynamicSerializer<T>

extends StdSerializer<T>
Class Inheritance
Known Direct Subclasses
tools.jackson.databind.ser.jackson.JsonValueSerializer, tools.jackson.databind.ser.std.ReferenceTypeSerializer
Imports
java.util.function.UnaryOperator, tools.jackson.databind.*, tools.jackson.databind.jsontype.TypeSerializer, tools.jackson.databind.ser.impl.PropertySerializerMap

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. Typically these are referential or delegating types.
Since
3.0

Field Summary

Modifier and TypeField and Description
protected PropertySerializerMap
_dynamicValueSerializers

If value type cannot be statically determined, mapping from runtime value types to serializers are stored in this object.

protected final BeanProperty
_property

Property for which this serializer is being used, if known at this point (`null` for root value serializers as well as those cached as blueprints).

protected final ValueSerializer<Object>
_valueSerializer

Eagerly fetched serializer for actual value contained or referenced, if fetched.

protected final TypeSerializer
_valueTypeSerializer

Type serializer used for values, if any: used for serializing values of polymorphic types.

Inherited from tools.jackson.databind.ser.std.StdSerializer:
_handledType

Constructor Summary

AccessConstructor and Description
protected
protected
protected

Method Summary

Modifier and TypeMethod and Description
protected final ValueSerializer<Object>
protected final ValueSerializer<Object>
protected final ValueSerializer<Object>
protected final ValueSerializer<Object>
Inherited from tools.jackson.databind.ser.std.StdSerializer:
_neitherNull_nonEmpty_wrapIOFailureacceptJsonFormatVisitoracceptJsonFormatVisitorForBinarycreateSchemaNodecreateSchemaNodefindAnnotatedContentSerializerfindContextualConvertingSerializerfindFormatFeaturefindFormatOverridesfindIncludeOverridesfindPropertyFilterhandledTypeisDefaultSerializerserializevisitArrayFormatvisitArrayFormatvisitFloatFormatvisitIntFormatvisitIntFormatvisitStringFormatvisitStringFormatwrapAndThrowwrapAndThrow

Field Detail

_dynamicValueSerializersback to summary
protected PropertySerializerMap _dynamicValueSerializers

If value type cannot be statically determined, mapping from runtime value types to serializers are stored in this object.

Since
3.0 (in 2.x subtypes contained it)
_propertyback to summary
protected final BeanProperty _property

Property for which this serializer is being used, if known at this point (`null` for root value serializers as well as those cached as blueprints).

_valueSerializerback to summary
protected final ValueSerializer<Object> _valueSerializer

Eagerly fetched serializer for actual value contained or referenced, if fetched.

_valueTypeSerializerback to summary
protected final TypeSerializer _valueTypeSerializer

Type serializer used for values, if any: used for serializing values of polymorphic types.

Constructor Detail

StdDynamicSerializerback to summary
protected StdDynamicSerializer(JavaType type, BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer)
Annotations
@SuppressWarnings:unchecked
StdDynamicSerializerback to summary
protected StdDynamicSerializer(StdDynamicSerializer<?> src, BeanProperty prop)
StdDynamicSerializerback to summary
protected StdDynamicSerializer(StdDynamicSerializer<?> src, BeanProperty prop, TypeSerializer vts, ValueSerializer<?> valueSer)
Annotations
@SuppressWarnings:unchecked

Method Detail

_findAndAddDynamicback to summary
protected final ValueSerializer<Object> _findAndAddDynamic(SerializationContext ctxt, Class<?> type)
_findAndAddDynamicback to summary
protected final ValueSerializer<Object> _findAndAddDynamic(SerializationContext ctxt, Class<?> type, UnaryOperator<ValueSerializer<Object>> serTransformer)
_findAndAddDynamicback to summary
protected final ValueSerializer<Object> _findAndAddDynamic(SerializationContext ctxt, JavaType type)
_findAndAddDynamicback to summary
protected final ValueSerializer<Object> _findAndAddDynamic(SerializationContext ctxt, JavaType type, UnaryOperator<ValueSerializer<Object>> serTransformer)