org.codehaus.jackson.map.KeyDeserializers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ehcache Show documentation
Show all versions of ehcache Show documentation
Ehcache is an open source, standards-based cache used to boost performance,
offload the database and simplify scalability. Ehcache is robust, proven and full-featured and
this has made it the most widely-used Java-based cache.
package org.codehaus.jackson.map;
import org.codehaus.jackson.type.JavaType;
/**
* Interface that defines API for simple extensions that can provide additional deserializers
* for deserializer Map keys of various types, from JSON property names.
* Access is by a single callback method; instance is to either return
* a configured {@link KeyDeserializer} for specified type, or null to indicate that it
* does not support handling of the type. In latter case, further calls can be made
* for other providers; in former case returned key deserializer is used for handling of
* key instances of specified type.
*
* @since 1.8
*/
public interface KeyDeserializers
{
public KeyDeserializer findKeyDeserializer(JavaType type, DeserializationConfig config,
BeanDescription beanDesc, BeanProperty property)
throws JsonMappingException;
}