@Internal public final class JacksonFeatures extends Object implements JsonFeatures
ObjectMapper
.
Features are supplied through the JacksonFeatures
annotation.Constructor and Description |
---|
JacksonFeatures()
Empty jackson features.
|
Modifier and Type | Method and Description |
---|---|
JacksonFeatures |
addFeature(com.fasterxml.jackson.databind.DeserializationFeature deserializationFeature,
boolean isEnabled)
Add a deserialization feature.
|
JacksonFeatures |
addFeature(com.fasterxml.jackson.databind.SerializationFeature serializationFeature,
boolean isEnabled)
Add a serialization feature.
|
JacksonFeatures |
addModule(Class<? extends com.fasterxml.jackson.databind.Module> moduleClass)
Add a jackson module feature.
|
boolean |
equals(Object o) |
static JacksonFeatures |
fromAnnotation(AnnotationValue<JacksonFeatures> jacksonFeaturesAnn) |
List<Class<? extends com.fasterxml.jackson.databind.Module>> |
getAdditionalModules()
Additional modules to load.
|
Map<com.fasterxml.jackson.databind.DeserializationFeature,Boolean> |
getDeserializationFeatures()
Deserialization features.
|
Map<com.fasterxml.jackson.databind.SerializationFeature,Boolean> |
getSerializationFeatures()
Serialization features.
|
int |
hashCode() |
public static JacksonFeatures fromAnnotation(AnnotationValue<JacksonFeatures> jacksonFeaturesAnn)
public JacksonFeatures addFeature(com.fasterxml.jackson.databind.SerializationFeature serializationFeature, boolean isEnabled)
serializationFeature
- serialization feature to enable/disableisEnabled
- whether you want to turn feature on/offpublic JacksonFeatures addFeature(com.fasterxml.jackson.databind.DeserializationFeature deserializationFeature, boolean isEnabled)
deserializationFeature
- deserialization feature to enable/disableisEnabled
- whether you want to turn feature on/off@NonNull public JacksonFeatures addModule(@NonNull Class<? extends com.fasterxml.jackson.databind.Module> moduleClass)
moduleClass
- The module to loadpublic Map<com.fasterxml.jackson.databind.SerializationFeature,Boolean> getSerializationFeatures()
public Map<com.fasterxml.jackson.databind.DeserializationFeature,Boolean> getDeserializationFeatures()
@NonNull public List<Class<? extends com.fasterxml.jackson.databind.Module>> getAdditionalModules()