nl.vpro.ektorp.Jackson2MapperFactory Maven / Gradle / Ivy
/*
* 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 Roelof Jan Koekoek
* @since 3.0
*/
public class Jackson2MapperFactory implements ObjectMapperFactory {
@Override
public ObjectMapper createObjectMapper() {
return Jackson2Mapper.getLenientInstance();
}
@Override
public ObjectMapper createObjectMapper(CouchDbConnector connector) {
return Jackson2Mapper.getLenientInstance();
}
}