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 |
findAndAddPrimarySerializer(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 |
findAndAddSecondarySerializer(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) |
PropertySerializerMap.SerializerAndMapResult |
findAndAddSerializer(Class<?> type,
SerializerProvider provider,
BeanProperty property)
Deprecated.
Since 2.3; use either
findAndAddPrimarySerializer or
findAndAddSecondarySerializer .
To be removed from 2.4 |
PropertySerializerMap.SerializerAndMapResult |
findAndAddSerializer(JavaType type,
SerializerProvider provider,
BeanProperty property)
Deprecated.
Since 2.3; use either
findAndAddPrimarySerializer or
findAndAddSecondarySerializer .
To be removed from 2.4 |
abstract PropertySerializerMap |
newWith(Class<?> type,
JsonSerializer<Object> serializer) |
abstract JsonSerializer<Object> |
serializerFor(Class<?> type)
Main lookup method.
|
public abstract JsonSerializer<Object> serializerFor(Class<?> type)
@Deprecated public final PropertySerializerMap.SerializerAndMapResult findAndAddSerializer(Class<?> type, SerializerProvider provider, BeanProperty property) throws JsonMappingException
findAndAddPrimarySerializer
or
findAndAddSecondarySerializer
.
To be removed from 2.4JsonMappingException
@Deprecated public final PropertySerializerMap.SerializerAndMapResult findAndAddSerializer(JavaType type, SerializerProvider provider, BeanProperty property) throws JsonMappingException
findAndAddPrimarySerializer
or
findAndAddSecondarySerializer
.
To be removed from 2.4JsonMappingException
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 abstract PropertySerializerMap newWith(Class<?> type, JsonSerializer<Object> serializer)
public static PropertySerializerMap emptyMap()
Copyright © 2012-2013 FasterXML. All Rights Reserved.