All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fasterxml.clustermate.json.ClusterMateObjectMapper Maven / Gradle / Ivy

Go to download

Converters for ClusterMate and StoreMate datatypes, for Jackson-based JSON serialization (as well as other dataformats Jackson supports, like Smile)

There is a newer version: 0.10.5
Show newest version
package com.fasterxml.clustermate.json;

import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * Sub-class of {@link ObjectMapper} that has custom handlers for
 * datatypes used by standard StoreMate servers and clients.
 */
@SuppressWarnings("serial")
public class ClusterMateObjectMapper extends ObjectMapper
{
    public ClusterMateObjectMapper()
    {
        // since these are JSON mappers, no point in numeric representation (false)
        registerModule(new ClusterMateTypesModule(false));
    }

    public ClusterMateObjectMapper(JsonFactory f)
    {
        super(f);
        // since these are JSON mappers, no point in numeric representation (false)
        registerModule(new ClusterMateTypesModule(false));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy