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
|
Constructor and Description |
---|
PropertySerializerMap() |
Modifier and Type | Method and Description |
---|---|
static PropertySerializerMap |
emptyMap() |
PropertySerializerMap.SerializerAndMapResult |
findAndAddSerializer(Class<?> type,
SerializerProvider provider,
BeanProperty property)
Method called if initial lookup fails; will both find serializer
and construct new map instance if warranted, and return both
|
PropertySerializerMap.SerializerAndMapResult |
findAndAddSerializer(JavaType type,
SerializerProvider provider,
BeanProperty property) |
abstract PropertySerializerMap |
newWith(Class<?> type,
JsonSerializer<Object> serializer) |
abstract JsonSerializer<Object> |
serializerFor(Class<?> type)
Main lookup method.
|
public abstract JsonSerializer<Object> serializerFor(Class<?> type)
public final PropertySerializerMap.SerializerAndMapResult findAndAddSerializer(Class<?> type, SerializerProvider provider, BeanProperty property) throws JsonMappingException
JsonMappingException
public final PropertySerializerMap.SerializerAndMapResult findAndAddSerializer(JavaType type, SerializerProvider provider, BeanProperty property) throws JsonMappingException
JsonMappingException
public abstract PropertySerializerMap newWith(Class<?> type, JsonSerializer<Object> serializer)
public static PropertySerializerMap emptyMap()