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

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

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

import com.fasterxml.jackson.databind.DeserializationFeature;
import com.google.auto.value.AutoValue;

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

Example: * *

{@code @ProvidesIntoSet
 * DeserializationFeatureFlag providesDeserializationFeature() {
 *   return DeserializationFeatureFlag.create(DeserializationFeature.FEATURE_NAME, true);
 * }
 * }
* * @author Nimesh Subramanian */ @AutoValue public abstract class DeserializationFeatureFlag { public static DeserializationFeatureFlag create( DeserializationFeature feature, Boolean isEnabled) { return new AutoValue_DeserializationFeatureFlag(feature, isEnabled); } public abstract DeserializationFeature feature(); public abstract Boolean isEnabled(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy