Class PersistentEntityJackson2Module.AssociationUriResolvingDeserializerModifier

java.lang.Object
com.fasterxml.jackson.databind.deser.BeanDeserializerModifier
org.springframework.data.rest.webmvc.json.PersistentEntityJackson2Module.AssociationUriResolvingDeserializerModifier
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 PersistentEntitys. 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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Advanced customization of the CreatorProperty instances customized to additionally register them with the ValueInstantiator backing the BeanDeserializerModifier.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AssociationUriResolvingDeserializerModifier(org.springframework.data.mapping.context.PersistentEntities entities, Associations associations, UriToEntityConverter converter, org.springframework.data.repository.support.RepositoryInvokerFactory factory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     

    Methods inherited from class com.fasterxml.jackson.databind.deser.BeanDeserializerModifier

    modifyArrayDeserializer, modifyCollectionDeserializer, modifyCollectionLikeDeserializer, modifyDeserializer, modifyEnumDeserializer, modifyKeyDeserializer, modifyMapDeserializer, modifyMapLikeDeserializer, modifyReferenceDeserializer, updateProperties

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AssociationUriResolvingDeserializerModifier

      public AssociationUriResolvingDeserializerModifier(org.springframework.data.mapping.context.PersistentEntities entities, Associations associations, UriToEntityConverter converter, org.springframework.data.repository.support.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 class com.fasterxml.jackson.databind.deser.BeanDeserializerModifier