public abstract class PropertySerializerMap
extends java.lang.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(java.lang.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(java.lang.Class<?> type,
JsonSerializer<java.lang.Object> serializer) |
abstract JsonSerializer<java.lang.Object> |
serializerFor(java.lang.Class<?> type)
Main lookup method.
|
public abstract JsonSerializer<java.lang.Object> serializerFor(java.lang.Class<?> type)
public final PropertySerializerMap.SerializerAndMapResult findAndAddSerializer(java.lang.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(java.lang.Class<?> type, JsonSerializer<java.lang.Object> serializer)
public static PropertySerializerMap emptyMap()