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

nl.vpro.ektorp.PublisherJackson2MapperFactory Maven / Gradle / Ivy

There is a newer version: 2.8.1
Show newest version
/*
 * Copyright (C) 2014 All rights reserved
 * VPRO The Netherlands
 */
package nl.vpro.ektorp;

import org.ektorp.CouchDbConnector;
import org.ektorp.impl.ObjectMapperFactory;
import com.fasterxml.jackson.databind.ObjectMapper;

import nl.vpro.jackson2.Jackson2Mapper;

/**
 * @author Michiel Meeuwissen
 * @since 5.5
 */
public class PublisherJackson2MapperFactory implements ObjectMapperFactory {

    @Override
    public ObjectMapper createObjectMapper() {
        return Jackson2Mapper.getPublisherInstance();
    }

    @Override
    public ObjectMapper createObjectMapper(CouchDbConnector connector) {
        return Jackson2Mapper.getPublisherInstance();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy