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
|
Modifier and Type | Method and Description |
---|---|
PropertySerializerMap.SerializerAndMapResult |
addSerializer(java.lang.Class<?> type,
JsonSerializer<java.lang.Object> serializer)
Method that can be used to 'register' a serializer that caller has resolved
without help of this map.
|
PropertySerializerMap.SerializerAndMapResult |
addSerializer(JavaType type,
JsonSerializer<java.lang.Object> serializer) |
static PropertySerializerMap |
emptyForProperties() |
static PropertySerializerMap |
emptyForRootValues() |
static PropertySerializerMap |
emptyMap()
Deprecated.
Since 2.5 Use
emptyForProperties() instead |
PropertySerializerMap.SerializerAndMapResult |
findAndAddKeySerializer(java.lang.Class<?> type,
SerializerProvider provider,
BeanProperty property)
Method called if initial lookup fails, when looking for a key
serializer (possible attached indirectly to a property)
Will both find serializer
and construct new map instance if warranted, and return both.
|
PropertySerializerMap.SerializerAndMapResult |
findAndAddPrimarySerializer(java.lang.Class<?> type,
SerializerProvider provider,
BeanProperty property)
Method called if initial lookup fails, when looking for a primary
serializer (one that is directly attached to a property).
|
PropertySerializerMap.SerializerAndMapResult |
findAndAddPrimarySerializer(JavaType type,
SerializerProvider provider,
BeanProperty property) |
PropertySerializerMap.SerializerAndMapResult |
findAndAddRootValueSerializer(java.lang.Class<?> type,
SerializerProvider provider)
Method called if initial lookup fails, when looking for a root value
serializer: one that is not directly attached to a property, but needs to
have
TypeSerializer wrapped
around it. |
PropertySerializerMap.SerializerAndMapResult |
findAndAddRootValueSerializer(JavaType type,
SerializerProvider provider) |
PropertySerializerMap.SerializerAndMapResult |
findAndAddSecondarySerializer(java.lang.Class<?> type,
SerializerProvider provider,
BeanProperty property)
Method called if initial lookup fails, when looking for a non-primary
serializer (one that is not directly attached to a property).
|
PropertySerializerMap.SerializerAndMapResult |
findAndAddSecondarySerializer(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 findAndAddPrimarySerializer(java.lang.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(java.lang.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(java.lang.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 findAndAddKeySerializer(java.lang.Class<?> type, SerializerProvider provider, BeanProperty property) throws JsonMappingException
JsonMappingException
public final PropertySerializerMap.SerializerAndMapResult addSerializer(java.lang.Class<?> type, JsonSerializer<java.lang.Object> serializer)
public final PropertySerializerMap.SerializerAndMapResult addSerializer(JavaType type, JsonSerializer<java.lang.Object> serializer)
public abstract PropertySerializerMap newWith(java.lang.Class<?> type, JsonSerializer<java.lang.Object> serializer)
@Deprecated public static PropertySerializerMap emptyMap()
emptyForProperties()
insteadpublic static PropertySerializerMap emptyForProperties()
public static PropertySerializerMap emptyForRootValues()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"