public abstract class DefaultDeserializationContext extends DeserializationContext implements java.io.Serializable
DeserializationContext implementation that adds
extended API for ObjectMapper (and ObjectReader)
to call, as well as implements certain parts that base class
has left abstract.
The remaining abstract methods (createInstance(com.fasterxml.jackson.databind.DeserializationConfig, com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.databind.InjectableValues), with(com.fasterxml.jackson.databind.deser.DeserializerFactory))
are left so that custom implementations will properly implement them
to return intended subtype.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultDeserializationContext.Impl
Actual full concrete implementation
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkUnresolvedObjectId()
Method called to ensure that every object id encounter during processing
are resolved.
|
DefaultDeserializationContext |
copy()
Method needed to ensure that
ObjectMapper.copy() will work
properly; specifically, that caches are cleared, but settings
will otherwise remain identical; and that no sharing of state
occurs. |
abstract DefaultDeserializationContext |
createDummyInstance(DeserializationConfig config) |
abstract DefaultDeserializationContext |
createInstance(DeserializationConfig config,
JsonParser p,
InjectableValues values)
Method called to create actual usable per-deserialization
context instance.
|
JsonDeserializer<java.lang.Object> |
deserializerInstance(Annotated ann,
java.lang.Object deserDef) |
ReadableObjectId |
findObjectId(java.lang.Object id,
ObjectIdGenerator<?> gen,
ObjectIdResolver resolverType)
Method called to find and return entry corresponding to given
Object Id: will add an entry if necessary, and never returns null
|
KeyDeserializer |
keyDeserializerInstance(Annotated ann,
java.lang.Object deserDef) |
java.lang.Object |
readRootValue(JsonParser p,
JavaType valueType,
JsonDeserializer<java.lang.Object> deser,
java.lang.Object valueToUpdate) |
abstract DefaultDeserializationContext |
with(DeserializerFactory factory)
Fluent factory method used for constructing a blueprint instance
with different factory
|
bufferAsCopyOfValue, bufferForInputBuffering, bufferForInputBuffering, canOverrideAccessModifiers, constructCalendar, constructSpecializedType, constructType, endOfInputException, extractScalarFromObject, findClass, findCoercionAction, findCoercionFromBlankString, findContextualValueDeserializer, findInjectableValue, findKeyDeserializer, findNonContextualValueDeserializer, findRootValueDeserializer, getActiveView, getAnnotationIntrospector, getArrayBuilders, getAttribute, getBase64Variant, getConfig, getContextualType, getDefaultPropertyFormat, getDeserializationFeatures, getFactory, getLocale, getNodeFactory, getParser, getTimeZone, getTypeFactory, handleBadMerge, handleInstantiationProblem, handleMissingInstantiator, handleMissingTypeId, handlePrimaryContextualization, handleSecondaryContextualization, handleUnexpectedToken, handleUnexpectedToken, handleUnexpectedToken, handleUnexpectedToken, handleUnknownProperty, handleUnknownTypeId, handleWeirdKey, handleWeirdNativeValue, handleWeirdNumberValue, handleWeirdStringValue, hasDeserializationFeatures, hasSomeOfFeatures, hasValueDeserializerFor, instantiationException, instantiationException, invalidTypeIdException, isEnabled, isEnabled, isEnabled, leaseObjectBuffer, mappingException, mappingException, mappingException, mappingException, missingTypeIdException, parseDate, readPropertyValue, readPropertyValue, readTree, readTreeAsValue, readTreeAsValue, readValue, readValue, reportBadCoercion, reportBadDefinition, reportBadMerge, reportBadPropertyDefinition, reportBadTypeDefinition, reportInputMismatch, reportInputMismatch, reportInputMismatch, reportInputMismatch, reportMappingException, reportMissingContent, reportPropertyInputMismatch, reportPropertyInputMismatch, reportTrailingTokens, reportUnknownProperty, reportUnresolvedObjectId, reportWrongTokenException, reportWrongTokenException, reportWrongTokenException, reportWrongTokenException, returnObjectBuffer, setAttribute, unknownTypeException, weirdKeyException, weirdNativeValueException, weirdNumberException, weirdStringException, wrongTokenException, wrongTokenException, wrongTokenExceptionconstructType, converterInstance, objectIdGeneratorInstance, objectIdResolverInstance, reportBadDefinition, resolveAndValidateSubType, resolveSubTypepublic DefaultDeserializationContext copy()
ObjectMapper.copy() will work
properly; specifically, that caches are cleared, but settings
will otherwise remain identical; and that no sharing of state
occurs.public ReadableObjectId findObjectId(java.lang.Object id, ObjectIdGenerator<?> gen, ObjectIdResolver resolverType)
DeserializationContextfindObjectId in class DeserializationContextpublic void checkUnresolvedObjectId()
throws UnresolvedForwardReference
DeserializationContextcheckUnresolvedObjectId in class DeserializationContextUnresolvedForwardReferencepublic JsonDeserializer<java.lang.Object> deserializerInstance(Annotated ann, java.lang.Object deserDef) throws JsonMappingException
deserializerInstance in class DeserializationContextJsonMappingExceptionpublic final KeyDeserializer keyDeserializerInstance(Annotated ann, java.lang.Object deserDef) throws JsonMappingException
keyDeserializerInstance in class DeserializationContextJsonMappingExceptionpublic abstract DefaultDeserializationContext with(DeserializerFactory factory)
public abstract DefaultDeserializationContext createInstance(DeserializationConfig config, JsonParser p, InjectableValues values)
public abstract DefaultDeserializationContext createDummyInstance(DeserializationConfig config)
public java.lang.Object readRootValue(JsonParser p, JavaType valueType, JsonDeserializer<java.lang.Object> deser, java.lang.Object valueToUpdate) throws java.io.IOException
java.io.IOExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved