Class PersistentEntityJackson2Module.AssociationUriResolvingDeserializerModifier
java.lang.Object
com.fasterxml.jackson.databind.deser.BeanDeserializerModifier
org.springframework.data.rest.webmvc.json.PersistentEntityJackson2Module.AssociationUriResolvingDeserializerModifier
- All Implemented Interfaces:
Serializable
- Enclosing class:
- PersistentEntityJackson2Module
public static class PersistentEntityJackson2Module.AssociationUriResolvingDeserializerModifier
extends com.fasterxml.jackson.databind.deser.BeanDeserializerModifier
A
BeanDeserializerModifier
that registers a custom PersistentEntityJackson2Module.UriStringDeserializer
for association properties
of PersistentEntity
s. This allows to submit URIs for those properties in request payloads, so that
non-optional associations can be populated on resource creation.- Author:
- Oliver Gierke, Lars Vierbergen
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Advanced customization of theCreatorProperty
instances customized to additionally register them with theValueInstantiator
backing theBeanDeserializerModifier
. -
Constructor Summary
ConstructorDescriptionAssociationUriResolvingDeserializerModifier
(PersistentEntities entities, Associations associations, UriToEntityConverter converter, RepositoryInvokerFactory factory) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.deser.BeanDeserializerBuilder
updateBuilder
(com.fasterxml.jackson.databind.DeserializationConfig config, com.fasterxml.jackson.databind.BeanDescription beanDesc, com.fasterxml.jackson.databind.deser.BeanDeserializerBuilder builder) Methods inherited from class com.fasterxml.jackson.databind.deser.BeanDeserializerModifier
modifyArrayDeserializer, modifyCollectionDeserializer, modifyCollectionLikeDeserializer, modifyDeserializer, modifyEnumDeserializer, modifyKeyDeserializer, modifyMapDeserializer, modifyMapLikeDeserializer, modifyReferenceDeserializer, updateProperties
-
Constructor Details
-
AssociationUriResolvingDeserializerModifier
public AssociationUriResolvingDeserializerModifier(PersistentEntities entities, Associations associations, UriToEntityConverter converter, RepositoryInvokerFactory factory)
-
-
Method Details
-
updateBuilder
public com.fasterxml.jackson.databind.deser.BeanDeserializerBuilder updateBuilder(com.fasterxml.jackson.databind.DeserializationConfig config, com.fasterxml.jackson.databind.BeanDescription beanDesc, com.fasterxml.jackson.databind.deser.BeanDeserializerBuilder builder) - Overrides:
updateBuilder
in classcom.fasterxml.jackson.databind.deser.BeanDeserializerModifier
-