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, with)
are left so that custom implementations will properly implement them
to return intended subtype.
| Modifier and Type | Class and Description |
|---|---|
| public static class | DefaultDeserializationContext.
Actual full concrete implementation |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| protected transient LinkedHashMap | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| 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 cannot be null |
| protected | DefaultDeserializationContext(DefaultDeserializationContext src, DeserializationConfig config, JsonParser p, InjectableValues values)
|
| protected | |
| protected | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | _unwrapAndDeserialize(JsonParser p, JavaType rootType, JsonDeserializer<Object> deser, Object valueToUpdate)
|
| public void | checkUnresolvedObjectId()
Implements abstract com. Method called to ensure that every object id encounter during processing are resolved. |
| public DefaultDeserializationContext | copy()
Method needed to ensure that |
| public abstract DefaultDeserializationContext | |
| public abstract DefaultDeserializationContext | createInstance(DeserializationConfig config, JsonParser p, InjectableValues values)
Method called to create actual usable per-deserialization context instance. |
| protected ReadableObjectId | Returns: New ReadableObjectId instanceThe key to associate with the new ReadableObjectId keyOverridable factory method to create a new instance of ReadableObjectId or its subclass. |
| public JsonDeserializer | deserializerInstance(Annotated ann, Object deserDef)
Implements abstract com.
|
| public ReadableObjectId | findObjectId(Object id, ObjectIdGenerator<?> gen, ObjectIdResolver resolverType)
Implements abstract com. Method called to find and return entry corresponding to given Object Id: will add an entry if necessary, and never returns null |
| public final KeyDeserializer | keyDeserializerInstance(Annotated ann, Object deserDef)
Implements abstract com.
|
| public Object | readRootValue(JsonParser p, JavaType valueType, JsonDeserializer<Object> deser, Object valueToUpdate)
|
| protected boolean | tryToResolveUnresolvedObjectId(ReadableObjectId roid)
Overridable helper method called to try to resolve otherwise unresolvable |
| public abstract DefaultDeserializationContext | with(DeserializerFactory factory)
Fluent factory method used for constructing a blueprint instance with different factory |
| public abstract DefaultDeserializationContext | withCaches(CacheProvider cacheProvider)
Fluent factory method used for constructing a new instance with cache instances provided by |
| _objectIdResolvers | back to summary |
|---|---|
| private List<ObjectIdResolver> _objectIdResolvers | |
| _objectIds | back to summary |
|---|---|
| protected transient LinkedHashMap<ObjectIdGenerator. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| DefaultDeserializationContext | back to summary |
|---|---|
| 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 cannot be null | |
| DefaultDeserializationContext | back to summary |
|---|---|
| protected DefaultDeserializationContext(DefaultDeserializationContext src, DeserializationConfig config, JsonParser p, InjectableValues values) | |
| DefaultDeserializationContext | back to summary |
|---|---|
| protected DefaultDeserializationContext(DefaultDeserializationContext src, DeserializationConfig config) | |
| DefaultDeserializationContext | back to summary |
|---|---|
| protected DefaultDeserializationContext(DefaultDeserializationContext src, DeserializerFactory factory) | |
| DefaultDeserializationContext | back to summary |
|---|---|
| protected DefaultDeserializationContext(DefaultDeserializationContext src) Copy-constructor
| |
| DefaultDeserializationContext | back to summary |
|---|---|
protected DefaultDeserializationContext(DefaultDeserializationContext src, CacheProvider cp)
| |
| _unwrapAndDeserialize | back to summary |
|---|---|
| protected Object _unwrapAndDeserialize(JsonParser p, JavaType rootType, JsonDeserializer<Object> deser, Object valueToUpdate) throws IOException | |
| checkUnresolvedObjectId | back to summary |
|---|---|
| public void checkUnresolvedObjectId() throws UnresolvedForwardReference Implements abstract com. Doc from com. Method called to ensure that every object id encounter during processing are resolved.
| |
| copy | back to summary |
|---|---|
| public DefaultDeserializationContext copy() Method needed to ensure that
| |
| createDummyInstance | back to summary |
|---|---|
| public abstract DefaultDeserializationContext createDummyInstance(DeserializationConfig config) | |
| createInstance | back to summary |
|---|---|
| public abstract DefaultDeserializationContext createInstance(DeserializationConfig config, JsonParser p, InjectableValues values) Method called to create actual usable per-deserialization context instance. | |
| createReadableObjectId | back to summary |
|---|---|
| protected ReadableObjectId createReadableObjectId(ObjectIdGenerator. Overridable factory method to create a new instance of ReadableObjectId or its
subclass. It is meant to be overridden when custom ReadableObjectId is
needed for
| |
| deserializerInstance | back to summary |
|---|---|
| public JsonDeserializer Implements abstract com.
| |
| findObjectId | back to summary |
|---|---|
| public ReadableObjectId findObjectId(Object id, ObjectIdGenerator<?> gen, ObjectIdResolver resolverType) Implements abstract com. Doc from com. Method called to find and return entry corresponding to given Object Id: will add an entry if necessary, and never returns null
| |
| keyDeserializerInstance | back to summary |
|---|---|
| public final KeyDeserializer keyDeserializerInstance(Annotated ann, Object deserDef) throws JsonMappingException Implements abstract com.
| |
| readRootValue | back to summary |
|---|---|
| public Object readRootValue(JsonParser p, JavaType valueType, JsonDeserializer<Object> deser, Object valueToUpdate) throws IOException | |
| tryToResolveUnresolvedObjectId | back to summary |
|---|---|
| protected boolean tryToResolveUnresolvedObjectId(ReadableObjectId roid) Overridable helper method called to try to resolve otherwise unresolvable
Default implementation simply calls
| |
| with | back to summary |
|---|---|
| public abstract DefaultDeserializationContext with(DeserializerFactory factory) Fluent factory method used for constructing a blueprint instance with different factory | |
| withCaches | back to summary |
|---|---|
| public abstract DefaultDeserializationContext withCaches(CacheProvider cacheProvider) Fluent factory method used for constructing a new instance with cache instances provided by
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | Impl(DeserializerFactory df)
Default constructor for a blueprint object, which will use the standard
|
| private | Impl(DefaultDeserializationContext.
|
| private | |
| private | |
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public DefaultDeserializationContext | copy()
Overrides com. Method needed to ensure that |
| public DefaultDeserializationContext | |
| public DefaultDeserializationContext | createInstance(DeserializationConfig config, JsonParser p, InjectableValues values)
Implements abstract com. Method called to create actual usable per-deserialization context instance. |
| public DefaultDeserializationContext | with(DeserializerFactory factory)
Implements abstract com. Fluent factory method used for constructing a blueprint instance with different factory |
| public DefaultDeserializationContext | withCaches(CacheProvider cp)
Implements abstract com. Fluent factory method used for constructing a new instance with cache instances provided by |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| Impl | back to summary |
|---|---|
| public Impl(DeserializerFactory df) Default constructor for a blueprint object, which will use the standard
| |
| Impl | back to summary |
|---|---|
| private Impl(DefaultDeserializationContext. | |
| Impl | back to summary |
|---|---|
| private Impl(DefaultDeserializationContext. | |
| Impl | back to summary |
|---|---|
| private Impl(DefaultDeserializationContext. | |
| Impl | back to summary |
|---|---|
| private Impl(DefaultDeserializationContext. | |
| Impl | back to summary |
|---|---|
private Impl(DefaultDeserializationContext.
| |
| copy | back to summary |
|---|---|
| public DefaultDeserializationContext copy() Overrides com. Doc from com. Method needed to ensure that
| |
| createDummyInstance | back to summary |
|---|---|
| public DefaultDeserializationContext createDummyInstance(DeserializationConfig config) Implements abstract com.
| |
| createInstance | back to summary |
|---|---|
| public DefaultDeserializationContext createInstance(DeserializationConfig config, JsonParser p, InjectableValues values) Implements abstract com. Doc from com. Method called to create actual usable per-deserialization context instance.
| |
| with | back to summary |
|---|---|
| public DefaultDeserializationContext with(DeserializerFactory factory) Implements abstract com. Doc from com. Fluent factory method used for constructing a blueprint instance with different factory
| |
| withCaches | back to summary |
|---|---|
| public DefaultDeserializationContext withCaches(CacheProvider cp) Implements abstract com. Doc from com. Fluent factory method used for constructing a new instance with cache instances provided by
| |