Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package com.facebook.presto.jdbc.internal.jackson.databind.ser;
import com.facebook.presto.jdbc.internal.jackson.databind.*;
import com.facebook.presto.jdbc.internal.jackson.databind.jsontype.TypeSerializer;
import com.facebook.presto.jdbc.internal.jackson.databind.type.*;
/**
* Interface that defines API for simple extensions that can provide additional serializers
* for various types. Access is by a single callback method; instance is to either return
* a configured {@link JsonSerializer} 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 serializer is used for handling of
* instances of specified type.
*/
public interface Serializers
{
/**
* Method called by serialization framework first time a serializer is needed for
* specified type, which is not of a container or reference type (for which
* other methods are called).
*
* @param type Fully resolved type of instances to serialize
* @param config Serialization configuration in use
* @param beanDesc Additional information about type
*
* @return Configured serializer to use for the type; or null if implementation
* does not recognize or support type
*/
public JsonSerializer> findSerializer(SerializationConfig config,
JavaType type, BeanDescription beanDesc);
/**
* Method called by serialization framework first time a serializer is needed for
* given {@link ReferenceType}
*
* @since 2.7
*/
public JsonSerializer> findReferenceSerializer(SerializationConfig config,
ReferenceType type, BeanDescription beanDesc,
TypeSerializer contentTypeSerializer, JsonSerializer