public abstract class DefaultDeserializationContext extends DeserializationContext implements 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 | Field and Description |
---|---|
protected LinkedHashMap<ObjectIdGenerator.IdKey,ReadableObjectId> |
_objectIds |
_arrayBuilders, _cache, _config, _dateFormat, _factory, _featureFlags, _injectableValues, _objectBuffer, _parser, _view
Modifier | Constructor and Description |
---|---|
protected |
DefaultDeserializationContext(DefaultDeserializationContext src,
DeserializationConfig config,
JsonParser jp,
InjectableValues values) |
protected |
DefaultDeserializationContext(DefaultDeserializationContext src,
DeserializerFactory factory) |
protected |
DefaultDeserializationContext(DeserializerFactory df,
DeserializerCache cache)
Constructor that will pass specified deserializer factory and
cache: cache may be null (in which case default implementation
will be used), factory can not be null
|
Modifier and Type | Method and Description |
---|---|
abstract DefaultDeserializationContext |
createInstance(DeserializationConfig config,
JsonParser jp,
InjectableValues values)
Method called to create actual usable per-deserialization
context instance.
|
JsonDeserializer<Object> |
deserializerInstance(Annotated annotated,
Object deserDef) |
ReadableObjectId |
findObjectId(Object id,
ObjectIdGenerator<?> generator)
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 annotated,
Object deserDef) |
ObjectIdGenerator<?> |
objectIdGeneratorInstance(Annotated annotated,
ObjectIdInfo objectIdInfo) |
abstract DefaultDeserializationContext |
with(DeserializerFactory factory)
Fluent factory method used for constructing a blueprint instance
with different factory
|
_calcName, _desc, _valueDesc, canOverrideAccessModifiers, constructCalendar, constructType, determineClassName, endOfInputException, findClass, findContextualValueDeserializer, findInjectableValue, findKeyDeserializer, findRootValueDeserializer, getActiveView, getAnnotationIntrospector, getArrayBuilders, getBase64Variant, getConfig, getDateFormat, getFactory, getLocale, getNodeFactory, getParser, getTimeZone, getTypeFactory, handleUnknownProperty, hasValueDeserializerFor, instantiationException, instantiationException, isEnabled, isEnabled, leaseObjectBuffer, mappingException, mappingException, mappingException, parseDate, reportUnknownProperty, returnObjectBuffer, unknownTypeException, weirdKeyException, weirdNumberException, weirdNumberException, weirdStringException, weirdStringException, wrongTokenException
protected transient LinkedHashMap<ObjectIdGenerator.IdKey,ReadableObjectId> _objectIds
protected DefaultDeserializationContext(DeserializerFactory df, DeserializerCache cache)
protected DefaultDeserializationContext(DefaultDeserializationContext src, DeserializationConfig config, JsonParser jp, InjectableValues values)
protected DefaultDeserializationContext(DefaultDeserializationContext src, DeserializerFactory factory)
public ReadableObjectId findObjectId(Object id, ObjectIdGenerator<?> generator)
DeserializationContext
findObjectId
in class DeserializationContext
public ObjectIdGenerator<?> objectIdGeneratorInstance(Annotated annotated, ObjectIdInfo objectIdInfo) throws JsonMappingException
objectIdGeneratorInstance
in class DeserializationContext
JsonMappingException
public JsonDeserializer<Object> deserializerInstance(Annotated annotated, Object deserDef) throws JsonMappingException
deserializerInstance
in class DeserializationContext
JsonMappingException
public final KeyDeserializer keyDeserializerInstance(Annotated annotated, Object deserDef) throws JsonMappingException
keyDeserializerInstance
in class DeserializationContext
JsonMappingException
public abstract DefaultDeserializationContext with(DeserializerFactory factory)
public abstract DefaultDeserializationContext createInstance(DeserializationConfig config, JsonParser jp, InjectableValues values)
Copyright © 2012-2013 FasterXML. All Rights Reserved.