Class ServiceDeserializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.deser.NullValueProvider

    public class ServiceDeserializer
    extends com.fasterxml.jackson.databind.JsonDeserializer<Service>
    Custom deserializer for services.

    Necessary since the type dispatching is not uniform for services, sometimes we can decide by looking at @context, but other times we need to look at the profile or both.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer

        com.fasterxml.jackson.databind.JsonDeserializer.None
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Service deserialize​(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt)  
      boolean isImageService​(com.fasterxml.jackson.databind.node.ObjectNode node)  
      • Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer

        deserialize, deserializeWithType, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializer
    • Constructor Detail

      • ServiceDeserializer

        public ServiceDeserializer()
    • Method Detail

      • deserialize

        public Service deserialize​(com.fasterxml.jackson.core.JsonParser p,
                                   com.fasterxml.jackson.databind.DeserializationContext ctxt)
                            throws IOException
        Specified by:
        deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<Service>
        Throws:
        IOException
      • isImageService

        public boolean isImageService​(com.fasterxml.jackson.databind.node.ObjectNode node)