Class JacksonSerializers
java.lang.Object
com.fasterxml.jackson.databind.Module
com.fasterxml.jackson.databind.module.SimpleModule
org.springframework.data.rest.webmvc.json.JacksonSerializers
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned
,Serializable
public class JacksonSerializers
extends com.fasterxml.jackson.databind.module.SimpleModule
Custom Spring Data REST Jackson serializers.
- Since:
- 2.4
- Author:
- Oliver Gierke
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Enum deserializer that uses a resource bundle to resolve enum values.static class
An enum serializer to translate raw enum values into values resolved through a resource bundle.Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.Module
com.fasterxml.jackson.databind.Module.SetupContext
-
Field Summary
Fields inherited from class com.fasterxml.jackson.databind.module.SimpleModule
_abstractTypes, _deserializerModifier, _deserializers, _hasExplicitName, _keyDeserializers, _keySerializers, _mixins, _name, _namingStrategy, _serializerModifier, _serializers, _subtypes, _valueInstantiators, _version
-
Constructor Summary
ConstructorDescriptionJacksonSerializers
(EnumTranslator translator) Creates a newJacksonSerializers
with the givenEnumTranslator
. -
Method Summary
Methods inherited from class com.fasterxml.jackson.databind.module.SimpleModule
_checkNotNull, addAbstractTypeMapping, addDeserializer, addKeyDeserializer, addKeySerializer, addSerializer, addSerializer, addValueInstantiator, getModuleName, getTypeId, registerSubtypes, registerSubtypes, registerSubtypes, setAbstractTypes, setDeserializerModifier, setDeserializers, setKeyDeserializers, setKeySerializers, setMixInAnnotation, setNamingStrategy, setSerializerModifier, setSerializers, setupModule, setValueInstantiators, version
Methods inherited from class com.fasterxml.jackson.databind.Module
getDependencies
-
Constructor Details
-
JacksonSerializers
Creates a newJacksonSerializers
with the givenEnumTranslator
.- Parameters:
translator
- must not be null.
-