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

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

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

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

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

Example: * *

{@code @ProvidesIntoSet
 * SerializationFeatureFlag getSerializationFeature() {
 *   return SerializationFeatureFlag.create(SerializationFeature.FEATURE_NAME, true);
 * }
 * }
* * @author Nimesh Subramanian */ @AutoValue public abstract class SerializationFeatureFlag { public static SerializationFeatureFlag create(SerializationFeature feature, Boolean isEnabled) { return new AutoValue_SerializationFeatureFlag(feature, isEnabled); } public abstract SerializationFeature feature(); public abstract Boolean isEnabled(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy