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

kr.jm.metric.config.AbstractConfigManager Maven / Gradle / Ivy

There is a newer version: 0.2.7.3
Show newest version
package kr.jm.metric.config;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import org.slf4j.Logger;

public abstract class AbstractConfigManager {
    protected Logger log = org.slf4j.LoggerFactory.getLogger(getClass());
    protected static ObjectMapper ConfigObjectMapper = new ObjectMapper()
            .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
            .disable(SerializationFeature.FAIL_ON_EMPTY_BEANS)
            .enable(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL)
            .configure(JsonParser.Feature.ALLOW_COMMENTS, true);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy