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

public abstract Class RefPrimitiveMapSerializer<T, K>

extends PrimitiveMapSerializer<T>
Class Inheritance
Imports
tools.jackson.core.JacksonException, .JsonGenerator, tools.jackson.databind.*

Author
yawkat

Field Summary

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

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
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 RefPrimitiveMapSerializer<T, K>
withResolved(BeanProperty property, ValueSerializer<Object> keySerializer)

Inherited from tools.jackson.datatype.primitive_collections_base.ser.map.PrimitiveMapSerializer:
serializeserializeEntriesserializeWithType

Field Detail

_keySerializerback to summary
protected final ValueSerializer<Object> _keySerializer
_propertyback to summary
protected final BeanProperty _property
_typeback to summary
protected final JavaType _type

Constructor Detail

RefPrimitiveMapSerializerback to summary
protected RefPrimitiveMapSerializer(JavaType type, BeanProperty property, ValueSerializer<Object> keySerializer)

Method Detail

_serializeKeyback to summary
protected void _serializeKey(K key, 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 RefPrimitiveMapSerializer<T, K> withResolved(BeanProperty property, ValueSerializer<Object> keySerializer)