public class SimpleKeyDeserializers extends Object implements KeyDeserializers, 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.
Modifier and Type | Field and Description |
---|---|
protected HashMap<ClassKey,KeyDeserializer> |
_classMappings |
Constructor and Description |
---|
SimpleKeyDeserializers() |
Modifier and Type | Method and Description |
---|---|
SimpleKeyDeserializers |
addDeserializer(Class<?> forClass,
KeyDeserializer deser) |
KeyDeserializer |
findKeyDeserializer(JavaType type,
DeserializationConfig config,
BeanDescription beanDesc) |
protected HashMap<ClassKey,KeyDeserializer> _classMappings
public SimpleKeyDeserializers addDeserializer(Class<?> forClass, KeyDeserializer deser)
public KeyDeserializer findKeyDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc)
findKeyDeserializer
in interface KeyDeserializers
Copyright © 2014–2015 FasterXML. All rights reserved.