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

com.cerner.beadledom.jackson.JsonParserFeatureFlag Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
package com.cerner.beadledom.jackson;

import com.fasterxml.jackson.core.JsonParser;
import com.google.auto.value.AutoValue;

/**
 * A helper class to enable/disable Jackson {@link JsonParser.Feature}'s
 * via Guice's multibinding.
 *
 * 

Example: * *

{@code @ProvidesIntoSet
 * JsonParserFeatureFlag getJsonParserFeature() {
 *   return JsonParserFeatureFlag.create(JsonParser.Feature.FEATURE_NAME, true);
 * }
 * }
* * @author Nimesh Subramanian */ @AutoValue public abstract class JsonParserFeatureFlag { public static JsonParserFeatureFlag create(JsonParser.Feature feature, Boolean isEnabled) { return new AutoValue_JsonParserFeatureFlag(feature, isEnabled); } public abstract JsonParser.Feature feature(); public abstract Boolean isEnabled(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy