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 POJOdeserialize(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.LoggergetLogger()Gets the logger for the implemented deserializer classMethods inherited from class tenapull.data.deserialize.AbstractContextualPojoDeserializer
createContextual, setTypeMethods inherited from class tenapull.data.deserialize.AbstractContextualDeserializer
getJavaType, getTypeMethods 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:AbstractContextualDeserializerGets the logger for the implemented deserializer class- Specified by:
getLoggerin 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:
deserializein classcom.fasterxml.jackson.databind.JsonDeserializer<POJO extends StringLookupPojo<POJO>>- Parameters:
jp-ctxt-- Returns:
- Throws:
java.io.IOException
-