DeserializationContext. It will be constructed and configured during
ObjectMapper building phase, and will be called once per readValue
call to construct actual stateful DeserializationContext to use during
serialization.
Note that since this object has to be serializable (to allow JDK serialization of
mapper instances), DeserializationContext need not be serializable any more.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final transient DeserializerCache | _cache
Cache for doing type-to-value-serializer lookups. |
| protected final transient DeserializerFactory | _deserializerFactory
Factory responsible for constructing standard serializers. |
| protected final transient TokenStreamFactory | _streamFactory
Low-level |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | DeserializationContexts(TokenStreamFactory tsf, DeserializerFactory deserializerFactory, DeserializerCache cache)
|
| Modifier and Type | Method and Description |
|---|---|
| public abstract DeserializationContextExt | createContext(DeserializationConfig config, FormatSchema schema, InjectableValues injectables)
Factory method for constructing context object for individual |
| public void | flushCachedDeserializers()
Method that will drop all dynamically constructed deserializers (ones that
are counted as result value for |
| public DeserializationContexts | forMapper(Object mapper, DeserializationConfig config, TokenStreamFactory tsf, DeserializerFactory deserializerFactory)
Mutant factory method called when instance is actually created for use by mapper (as opposed to coming into existence during building, module registration). |
| protected abstract DeserializationContexts | forMapper(Object mapper, TokenStreamFactory tsf, DeserializerFactory deserializerFactory, DeserializerCache cache)
|
| _cache | back to summary |
|---|---|
| protected final transient DeserializerCache _cache Cache for doing type-to-value-serializer lookups. | |
| _deserializerFactory | back to summary |
|---|---|
| protected final transient DeserializerFactory _deserializerFactory Factory responsible for constructing standard serializers. | |
| _streamFactory | back to summary |
|---|---|
| protected final transient TokenStreamFactory _streamFactory Low-level | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| DeserializationContexts | back to summary |
|---|---|
| protected DeserializationContexts() | |
| DeserializationContexts | back to summary |
|---|---|
| protected DeserializationContexts(TokenStreamFactory tsf, DeserializerFactory deserializerFactory, DeserializerCache cache) | |
| createContext | back to summary |
|---|---|
| public abstract DeserializationContextExt createContext(DeserializationConfig config, FormatSchema schema, InjectableValues injectables) Factory method for constructing context object for individual | |
| flushCachedDeserializers | back to summary |
|---|---|
| public void flushCachedDeserializers() Method that will drop all dynamically constructed deserializers (ones that
are counted as result value for | |
| forMapper | back to summary |
|---|---|
| public DeserializationContexts forMapper(Object mapper, DeserializationConfig config, TokenStreamFactory tsf, DeserializerFactory deserializerFactory) Mutant factory method called when instance is actually created for use by mapper (as opposed to coming into existence during building, module registration). Necessary usually to initialize non-configuration state, such as caching. | |
| forMapper | back to summary |
|---|---|
| protected abstract DeserializationContexts forMapper(Object mapper, TokenStreamFactory tsf, DeserializerFactory deserializerFactory, DeserializerCache cache) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public DeserializerCache | |
| public DeserializationContextExt | createContext(DeserializationConfig config, FormatSchema schema, InjectableValues injectables)
Implements abstract tools. Factory method for constructing context object for individual |
| public DeserializationContexts | forMapper(Object mapper, TokenStreamFactory tsf, DeserializerFactory serializerFactory, DeserializerCache cache)
Implements abstract tools.
|
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides tools. | |
| DefaultImpl | back to summary |
|---|---|
| public DefaultImpl() | |
| DefaultImpl | back to summary |
|---|---|
| public DefaultImpl(TokenStreamFactory tsf, DeserializerFactory serializerFactory, DeserializerCache cache) | |
| cacheForTests | back to summary |
|---|---|
| public DeserializerCache cacheForTests() | |
| createContext | back to summary |
|---|---|
| public DeserializationContextExt createContext(DeserializationConfig config, FormatSchema schema, InjectableValues injectables) Implements abstract tools. Doc from tools. Factory method for constructing context object for individual
| |
| forMapper | back to summary |
|---|---|
| public DeserializationContexts forMapper(Object mapper, TokenStreamFactory tsf, DeserializerFactory serializerFactory, DeserializerCache cache) Implements abstract tools.
| |