Class KeyDeserializer

java.lang.Object
tools.jackson.databind.KeyDeserializer
Direct Known Subclasses:
JDKKeyDeserializer, KeyDeserializer.None

public abstract class KeyDeserializer extends Object
Abstract class that defines API used for deserializing JSON content field names into Java Map keys. These deserializers are only used if the Map key class is not String or Object.
  • Constructor Details

    • KeyDeserializer

      public KeyDeserializer()
  • Method Details

    • resolve

      public void resolve(DeserializationContext ctxt) throws JacksonException
      Method called after deserializer instance has been constructed (and registered as necessary by provider objects), but before it has returned it to the caller. Called object can then resolve its dependencies to other types, including self-references (direct or indirect).
      Parameters:
      ctxt - Context to use for accessing configuration, resolving secondary deserializers
      Throws:
      JacksonException
    • deserializeKey

      public abstract Object deserializeKey(String key, DeserializationContext ctxt) throws JacksonException
      Method called to deserialize a Map key from JSON property name.
      Throws:
      JacksonException