Class Lookup.Deserializer<POJO extends StringLookupPojo<POJO>,​DAO extends Dao<POJO> & StringLookupDao<POJO>>

java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<T>
tenapull.data.deserialize.AbstractContextualDeserializer<POJO>
tenapull.data.deserialize.AbstractContextualPojoDeserializer<POJO,​DAO>
tenapull.data.deserialize.Lookup.Deserializer<POJO,​DAO>
Type Parameters:
POJO - The StringLookupPojo type
DAO - The Dao for the StringLookupPojo type
All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.ContextualDeserializer, com.fasterxml.jackson.databind.deser.NullValueProvider
Enclosing class:
Lookup

public static class Lookup.Deserializer<POJO extends StringLookupPojo<POJO>,​DAO extends Dao<POJO> & StringLookupDao<POJO>>
extends AbstractContextualPojoDeserializer<POJO,​DAO>
Converts a JSON string into the appropriate StringLookupPojo instance of the type provided by the AbstractContextualPojoDeserializer super class
  • Nested Class Summary

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

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

    Fields inherited from class tenapull.data.deserialize.AbstractContextualPojoDeserializer

    dao, pojoType
  • Constructor Summary

    Constructors 
    Constructor Description
    Deserializer()  
  • Method Summary

    Modifier and Type Method Description
    POJO deserialize​(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt)
    Converts a JSON string into the appropriate StringLookupPojo instance of the type provided by the AbstractContextualPojoDeserializer super class, using the Dao provided for that StringLookupPojo type.
    protected org.apache.logging.log4j.Logger getLogger()
    Gets the logger for the implemented deserializer class

    Methods inherited from class tenapull.data.deserialize.AbstractContextualPojoDeserializer

    createContextual, setType

    Methods inherited from class tenapull.data.deserialize.AbstractContextualDeserializer

    getJavaType, getType

    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

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getLogger

      protected org.apache.logging.log4j.Logger getLogger()
      Description copied from class: AbstractContextualDeserializer
      Gets the logger for the implemented deserializer class
      Specified by:
      getLogger in class AbstractContextualDeserializer<POJO extends StringLookupPojo<POJO>>
      Returns:
      the logger
    • deserialize

      public POJO deserialize​(com.fasterxml.jackson.core.JsonParser jp, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws java.io.IOException
      Converts a JSON string into the appropriate StringLookupPojo instance of the type provided by the AbstractContextualPojoDeserializer super class, using the Dao provided for that StringLookupPojo type.
      Specified by:
      deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<POJO extends StringLookupPojo<POJO>>
      Parameters:
      jp -
      ctxt -
      Returns:
      Throws:
      java.io.IOException