public class AfterUnmarshalDeserializer extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<Object> implements com.fasterxml.jackson.databind.deser.ContextualDeserializer
JsonDeserialize and than deserialize that (to avoid infinite recursion), and then call the first one that exists of:
afterUnmarshal(DeserializationContext ctxt, Object parent) Jackson specificafterUnmarshal(Object parent) We can't provide a Unmarshaller any wayafterUnmarshal(Unmarshaller unmarshaller, Object parent) This would be called by jaxb. We would too, but will have to supply null for the Unmarshaller.
{@code| Modifier | Constructor and Description |
|---|---|
|
AfterUnmarshalDeserializer() |
protected |
AfterUnmarshalDeserializer(com.fasterxml.jackson.databind.JavaType clazz) |
| Modifier and Type | Method and Description |
|---|---|
AfterUnmarshalDeserializer |
createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt,
com.fasterxml.jackson.databind.BeanProperty property) |
Object |
deserialize(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
protected Object |
deserializeObject(com.fasterxml.jackson.core.JsonParser p,
com.fasterxml.jackson.databind.DeserializationContext ctxt) |
static Class<?> |
extension(Class<?> valueClass)
extends the class (using javassist) to disable the current json deserialize class
|
static Object |
getParent(com.fasterxml.jackson.core.JsonParser p)
Given the current
JsonParser determins the parent object. |
static void |
invokeAfterUnmarshal(com.fasterxml.jackson.databind.DeserializationContext cxt,
Object obj,
Object parent)
If parent determined, and object created, call the afterUnmarshal method.
|
_byteOverflow, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeWrappedValue, _failDoubleToIntCoercion, _findNullProvider, _hasTextualNull, _intOverflow, _isEmptyOrTextualNull, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _neitherNull, _nonNullNumber, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseIntPrimitive, _parseIntPrimitive, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, deserializeWithType, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer, parseDoubledeserialize, deserializeWithType, findBackReference, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, isCachable, replaceDelegatee, supportsUpdate, unwrappingDeserializerpublic AfterUnmarshalDeserializer()
protected AfterUnmarshalDeserializer(com.fasterxml.jackson.databind.JavaType clazz)
public Object deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException, com.fasterxml.jackson.core.JsonProcessingException
deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<Object>IOExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionprotected Object deserializeObject(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
IOExceptionpublic static Object getParent(com.fasterxml.jackson.core.JsonParser p)
JsonParser determins the parent object.public static void invokeAfterUnmarshal(com.fasterxml.jackson.databind.DeserializationContext cxt,
Object obj,
Object parent)
throws com.fasterxml.jackson.core.JsonProcessingException
NoSuchMethodException - If no afterUnmarshal method could be foundcom.fasterxml.jackson.core.JsonProcessingException - If exception coming for calling this methodpublic static Class<?> extension(Class<?> valueClass)
public AfterUnmarshalDeserializer createContextual(com.fasterxml.jackson.databind.DeserializationContext ctxt, com.fasterxml.jackson.databind.BeanProperty property)
createContextual in interface com.fasterxml.jackson.databind.deser.ContextualDeserializerCopyright © 2020. All rights reserved.