public abstract class PropertySerializerMap extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PropertySerializerMap.SerializerAndMapResult
Value class used for returning tuple that has both serializer
that was retrieved and new map instance
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
_resetWhenFull
Configuration setting that determines what happens when maximum
size (currently 8) is reached: if true, will "start from beginning";
if false, will simply stop adding new entries.
|
Modifier | Constructor and Description |
---|---|
protected |
PropertySerializerMap(boolean resetWhenFull) |
protected |
PropertySerializerMap(PropertySerializerMap base) |
protected final boolean _resetWhenFull
protected PropertySerializerMap(boolean resetWhenFull)
protected PropertySerializerMap(PropertySerializerMap base)
public abstract JsonSerializer<Object> serializerFor(Class<?> type)
public final PropertySerializerMap.SerializerAndMapResult findAndAddPrimarySerializer(Class<?> type, SerializerProvider provider, BeanProperty property) throws JsonMappingException
JsonMappingException
public final PropertySerializerMap.SerializerAndMapResult findAndAddPrimarySerializer(JavaType type, SerializerProvider provider, BeanProperty property) throws JsonMappingException
JsonMappingException
public final PropertySerializerMap.SerializerAndMapResult findAndAddSecondarySerializer(Class<?> type, SerializerProvider provider, BeanProperty property) throws JsonMappingException
JsonMappingException
public final PropertySerializerMap.SerializerAndMapResult findAndAddSecondarySerializer(JavaType type, SerializerProvider provider, BeanProperty property) throws JsonMappingException
JsonMappingException
public final PropertySerializerMap.SerializerAndMapResult findAndAddRootValueSerializer(Class<?> type, SerializerProvider provider) throws JsonMappingException
TypeSerializer
wrapped
around it. Will both find the serializer
and construct new map instance if warranted, and return both.JsonMappingException
public final PropertySerializerMap.SerializerAndMapResult findAndAddRootValueSerializer(JavaType type, SerializerProvider provider) throws JsonMappingException
JsonMappingException
public final PropertySerializerMap.SerializerAndMapResult addSerializer(Class<?> type, JsonSerializer<Object> serializer)
public final PropertySerializerMap.SerializerAndMapResult addSerializer(JavaType type, JsonSerializer<Object> serializer)
public abstract PropertySerializerMap newWith(Class<?> type, JsonSerializer<Object> serializer)
@Deprecated public static PropertySerializerMap emptyMap()
emptyForProperties()
insteadpublic static PropertySerializerMap emptyForProperties()
public static PropertySerializerMap emptyForRootValues()
Copyright © 2014–2015 FasterXML. All rights reserved.