Package tenapull.data.deserialize
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 typeDAO
- 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
-
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 classMethods 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
-
Constructor Details
-
Deserializer
public Deserializer()
-
-
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 classAbstractContextualDeserializer<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.IOExceptionConverts 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 classcom.fasterxml.jackson.databind.JsonDeserializer<POJO extends StringLookupPojo<POJO>>
- Parameters:
jp
-ctxt
-- Returns:
- Throws:
java.io.IOException
-