Class PersistentEntityJackson2Module
java.lang.Object
com.fasterxml.jackson.databind.Module
com.fasterxml.jackson.databind.module.SimpleModule
org.springframework.data.rest.webmvc.json.PersistentEntityJackson2Module
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned
,Serializable
public class PersistentEntityJackson2Module
extends com.fasterxml.jackson.databind.module.SimpleModule
Jackson 2 module to serialize and deserialize
PersistentEntityResource
s.- Author:
- Jon Brisbin, Oliver Gierke, Greg Turnquist, Alex Leigh
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
ABeanDeserializerModifier
that registers a customPersistentEntityJackson2Module.UriStringDeserializer
for association properties ofPersistentEntity
s.static class
static class
CustomJsonDeserializer
to interpretString
values as URIs and resolve them using aUriToEntityConverter
.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
ConstructorDescriptionPersistentEntityJackson2Module
(Associations associations, PersistentEntities entities, UriToEntityConverter converter, LinkCollector collector, RepositoryInvokerFactory factory, PersistentEntityJackson2Module.LookupObjectSerializer lookupObjectSerializer, RepresentationModelProcessorInvoker invoker, EmbeddedResourcesAssembler assembler) -
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
-
PersistentEntityJackson2Module
public PersistentEntityJackson2Module(Associations associations, PersistentEntities entities, UriToEntityConverter converter, LinkCollector collector, RepositoryInvokerFactory factory, PersistentEntityJackson2Module.LookupObjectSerializer lookupObjectSerializer, RepresentationModelProcessorInvoker invoker, EmbeddedResourcesAssembler assembler) Creates a newPersistentEntityJackson2Module
using the givenAssociations
,PersistentEntities
,UriToEntityConverter
,LinkCollector
,RepositoryInvokerFactory
,PersistentEntityJackson2Module.LookupObjectSerializer
,RepresentationModelProcessorInvoker
andEmbeddedResourcesAssembler
.- 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.
-