public class SimpleKeyDeserializers extends java.lang.Object implements KeyDeserializers, java.io.Serializable
KeyDeserializers
which allows registration of
deserializers based on raw (type erased class).
It can work well for basic bean and scalar type deserializers, but is not
a good fit for handling generic types (like Map
s and Collection
s
or array types).
Unlike SimpleSerializers
, this class does not currently support generic mappings;
all mappings must be to exact declared deserialization type.
Constructor and Description |
---|
SimpleKeyDeserializers() |
Modifier and Type | Method and Description |
---|---|
SimpleKeyDeserializers |
addDeserializer(java.lang.Class<?> forClass,
KeyDeserializer deser) |
KeyDeserializer |
findKeyDeserializer(JavaType type,
DeserializationConfig config,
BeanDescription beanDesc) |
public SimpleKeyDeserializers addDeserializer(java.lang.Class<?> forClass, KeyDeserializer deser)
public KeyDeserializer findKeyDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc)
findKeyDeserializer
in interface KeyDeserializers
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"