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

com.jn.agileway.codec.serialization.json.JacksonCodec Maven / Gradle / Ivy

package com.jn.agileway.codec.serialization.json;

import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.jn.agileway.codec.serialization.jackson.BasedJacksonCodec;

public class JacksonCodec extends BasedJacksonCodec {
    public JacksonCodec() {
        super(new ObjectMapper(new JsonFactory()));
    }

    public JacksonCodec(ClassLoader classLoader) {
        super(createObjectMapper(classLoader, new ObjectMapper(new JsonFactory())));
    }

    public JacksonCodec(ClassLoader classLoader, JacksonCodec codec) {
        super(createObjectMapper(classLoader, codec.objectMapper.copy()));
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy