SimpleKeyDeserializers (Jackson JSON Processor)
Date: 2013-07-14

org.codehaus.jackson.map.module

## Class SimpleKeyDeserializers

- java.lang.Object
- - org.codehaus.jackson.map.module.SimpleKeyDeserializers

- All Implemented Interfaces:
    KeyDeserializers

      public class SimpleKeyDeserializers
      extends Object
      implements KeyDeserializers

  Simple implementation `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.

  Since:
    1.7

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected HashMap<ClassKey,KeyDeserializer>` | `_classMappings`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleKeyDeserializers()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `SimpleKeyDeserializers` | `addDeserializer(Class<?> forClass, KeyDeserializer deser)`
    `KeyDeserializer` | `findKeyDeserializer(JavaType type, DeserializationConfig config, BeanDescription beanDesc, BeanProperty property)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### _classMappings

          protected HashMap<ClassKey,KeyDeserializer> _classMappings

  - ### Constructor Detail

    - #### SimpleKeyDeserializers

          public SimpleKeyDeserializers()

  - ### Method Detail

    - #### addDeserializer

          public SimpleKeyDeserializers addDeserializer(Class<?> forClass,
                                               KeyDeserializer deser)

    - #### findKeyDeserializer

          public KeyDeserializer findKeyDeserializer(JavaType type,
                                            DeserializationConfig config,
                                            BeanDescription beanDesc,
                                            BeanProperty property)

      Specified by:
        `findKeyDeserializer` in interface `KeyDeserializers`