Top Fields Constructors Methods
tools.jackson.datatype.primitive_collections_base.ser.map

public abstract Class PrimitiveRefMapSerializer<T, V>

extends PrimitiveMapSerializer<T>
Class Inheritance
Imports
tools.jackson.core.JacksonException, .JsonGenerator, tools.jackson.databind.*, tools.jackson.databind.jsontype.TypeSerializer, tools.jackson.databind.ser.impl.PropertySerializerMap

Author
yawkat

Field Summary

Modifier and TypeField and Description
protected PropertySerializerMap
protected final BeanProperty
protected final JavaType
protected final ValueSerializer<Object>
protected final TypeSerializer

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected final ValueSerializer<Object>
protected void
public ValueSerializer<?>
createContextual(SerializationContext ctxt, BeanProperty property)

Overrides tools.jackson.databind.ValueSerializer.createContextual.

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).

protected abstract PrimitiveRefMapSerializer<T, V>
Inherited from tools.jackson.datatype.primitive_collections_base.ser.map.PrimitiveMapSerializer:
serializeserializeEntriesserializeWithType

Field Detail

_dynamicValueSerializersback to summary
protected PropertySerializerMap _dynamicValueSerializers
_propertyback to summary
protected final BeanProperty _property
_typeback to summary
protected final JavaType _type
_valueSerializerback to summary
protected final ValueSerializer<Object> _valueSerializer
_valueTypeSerializerback to summary
protected final TypeSerializer _valueTypeSerializer

Constructor Detail

PrimitiveRefMapSerializerback to summary
protected PrimitiveRefMapSerializer(JavaType type, BeanProperty property, TypeSerializer vts, ValueSerializer<Object> valueSerializer)

Method Detail

_findAndAddDynamicback to summary
protected final ValueSerializer<Object> _findAndAddDynamic(PropertySerializerMap map, JavaType type, SerializationContext ctxt)
_serializeValueback to summary
protected void _serializeValue(V value, JsonGenerator gen, SerializationContext ctxt) throws JacksonException
createContextualback to summary
public ValueSerializer<?> createContextual(SerializationContext ctxt, BeanProperty property)

Overrides tools.jackson.databind.ValueSerializer.createContextual.

Doc from tools.jackson.databind.ValueSerializer.createContextual.

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). Note that instance that this method is called on is typically shared one and as a result method should NOT modify this instance but rather construct and return a new instance. This instance should only be returned as-is, in case it is already suitable for use.

Note that method is only called once per POJO property, and for the first usage as root value serializer; it is not called for every serialization, as doing that would have significant performance impact; most serializers cache contextual instances for future use.

Annotations
@Override
withResolvedback to summary
protected abstract PrimitiveRefMapSerializer<T, V> withResolved(TypeSerializer vts, BeanProperty property, ValueSerializer<Object> valueSerializer)