Class PersistentEntityJackson3Module
java.lang.Object
tools.jackson.databind.JacksonModule
tools.jackson.databind.module.SimpleModule
org.springframework.data.rest.webmvc.json.PersistentEntityJackson3Module
- All Implemented Interfaces:
Serializable,tools.jackson.core.Versioned
public class PersistentEntityJackson3Module
extends tools.jackson.databind.module.SimpleModule
Jackson 3 module to serialize and deserialize
PersistentEntityResources.- Since:
- 5.0
- Author:
- Mark Paluch, Jon Brisbin, Oliver Gierke, Greg Turnquist, Alex Leigh
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAValueDeserializerModifierthat registers a customPersistentEntityJackson3Module.UriStringDeserializerfor association properties ofPersistentEntitys.static classstatic classCustomStdDeserializerto interpretStringvalues as URIs and resolve them using aUriToEntityConverter.Nested classes/interfaces inherited from class tools.jackson.databind.JacksonModule
tools.jackson.databind.JacksonModule.SetupContext -
Field Summary
Fields inherited from class tools.jackson.databind.module.SimpleModule
_abstractTypes, _defaultNullKeySerializer, _defaultNullValueSerializer, _deserializerModifier, _deserializers, _id, _keyDeserializers, _keySerializers, _mixins, _name, _namingStrategy, _serializerModifier, _serializers, _subtypes, _valueInstantiators, _version -
Constructor Summary
ConstructorsConstructorDescriptionPersistentEntityJackson3Module(Associations associations, PersistentEntities entities, UriToEntityConverter converter, LinkCollector collector, RepositoryInvokerFactory factory, PersistentEntityJackson3Module.LookupObjectSerializer lookupObjectSerializer, RepresentationModelProcessorInvoker invoker, EmbeddedResourcesAssembler assembler) -
Method Summary
Methods inherited from class tools.jackson.databind.module.SimpleModule
_checkNotNull, addAbstractTypeMapping, addDeserializer, addKeyDeserializer, addKeySerializer, addSerializer, addSerializer, addValueInstantiator, getModuleName, getRegistrationId, registerSubtypes, registerSubtypes, registerSubtypes, setAbstractTypes, setDefaultNullKeySerializer, setDefaultNullValueSerializer, setDeserializerModifier, setDeserializers, setKeyDeserializers, setKeySerializers, setMixInAnnotation, setNamingStrategy, setSerializerModifier, setSerializers, setupModule, setValueInstantiators, versionMethods inherited from class tools.jackson.databind.JacksonModule
getDependencies
-
Constructor Details
-
PersistentEntityJackson3Module
public PersistentEntityJackson3Module(Associations associations, PersistentEntities entities, UriToEntityConverter converter, LinkCollector collector, RepositoryInvokerFactory factory, PersistentEntityJackson3Module.LookupObjectSerializer lookupObjectSerializer, RepresentationModelProcessorInvoker invoker, EmbeddedResourcesAssembler assembler) Creates a newPersistentEntityJackson3Moduleusing the givenAssociations,PersistentEntities,UriToEntityConverter,LinkCollector,RepositoryInvokerFactory,PersistentEntityJackson3Module.LookupObjectSerializer,RepresentationModelProcessorInvokerandEmbeddedResourcesAssembler.- Parameters:
associations- must not be null.entities- must not be null.converter- must not be null.collector- must not be null.factory- must not be null.lookupObjectSerializer- must not be null.invoker- must not be null.assembler- must not be null.
-