Package | Description |
---|---|
com.fasterxml.jackson.databind |
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode ), as well as
writing Java Objects and trees as JSON. |
com.fasterxml.jackson.databind.cfg |
Package that contains most of configuration-related classes;
exception being couple of most-commonly used configuration
things (like Feature enumerations) that are at the
main level (
com.fasterxml.jackson.databind ). |
com.fasterxml.jackson.databind.deser |
Contains implementation classes of deserialization part of
data binding.
|
com.fasterxml.jackson.databind.deser.impl |
Contains those implementation classes of deserialization part of
data binding that are not considered part of public or semi-public
interfaces.
|
com.fasterxml.jackson.databind.deser.std |
Contains public standard implementations of abstraction that
Jackson uses.
|
com.fasterxml.jackson.databind.module |
Package that contains classes and interfaces to help implement
custom extension
Module s
(which are registered using
ObjectMapper.registerModule(com.fasterxml.jackson.databind.Module) . |
com.fasterxml.jackson.databind.util |
Utility classes for Mapper package.
|
Modifier and Type | Method | Description |
---|---|---|
Object |
DeserializationContext.handleMissingInstantiator(Class<?> instClass,
ValueInstantiator valueInst,
com.fasterxml.jackson.core.JsonParser p,
String msg,
Object... msgArgs) |
Method that deserializers should call if they fail to instantiate value
due to lack of viable instantiator (usually creator, that is, constructor
or static factory method).
|
Modifier and Type | Method | Description |
---|---|---|
ValueInstantiator |
HandlerInstantiator.valueInstantiatorInstance(MapperConfig<?> config,
Annotated annotated,
Class<?> resolverClass) |
Method called to construct an instance of ValueInstantiator of specified type.
|
Modifier and Type | Class | Description |
---|---|---|
static class |
ValueInstantiator.Base |
Partial
ValueInstantiator implementation that is strongly recommended
to be used instead of directly extending ValueInstantiator itself. |
Modifier and Type | Field | Description |
---|---|---|
protected ValueInstantiator |
BeanDeserializerBase._valueInstantiator |
Object that handles details of constructing initial
bean value (to which bind data to), unless instance
is passed (via updateValue())
|
protected ValueInstantiator |
BeanDeserializerBuilder._valueInstantiator |
Object that will handle value instantiation for the bean type.
|
Modifier and Type | Method | Description |
---|---|---|
protected ValueInstantiator |
BasicDeserializerFactory._constructDefaultValueInstantiator(DeserializationContext ctxt,
BeanDescription beanDesc) |
Method that will construct standard default
ValueInstantiator
using annotations (like @JsonCreator) and visibility rules |
ValueInstantiator |
BasicDeserializerFactory._valueInstantiatorInstance(DeserializationConfig config,
Annotated annotated,
Object instDef) |
|
ValueInstantiator |
BasicDeserializerFactory.findValueInstantiator(DeserializationContext ctxt,
BeanDescription beanDesc) |
Value instantiator is created both based on creator annotations,
and on optional externally provided instantiators (registered through
module interface).
|
abstract ValueInstantiator |
DeserializerFactory.findValueInstantiator(DeserializationContext ctxt,
BeanDescription beanDesc) |
Method that is to find all creators (constructors, factory methods)
for the bean type to deserialize.
|
ValueInstantiator |
ValueInstantiators.Base.findValueInstantiator(DeserializationConfig config,
BeanDescription beanDesc,
ValueInstantiator defaultInstantiator) |
|
ValueInstantiator |
ValueInstantiators.findValueInstantiator(DeserializationConfig config,
BeanDescription beanDesc,
ValueInstantiator defaultInstantiator) |
Method called to find the
ValueInstantiator to use for creating
instances of specified type during deserialization. |
ValueInstantiator |
BeanDeserializerBase.getValueInstantiator() |
|
ValueInstantiator |
BeanDeserializerBuilder.getValueInstantiator() |
|
ValueInstantiator |
ValueInstantiator.Gettable.getValueInstantiator() |
Modifier and Type | Method | Description |
---|---|---|
ValueInstantiator |
ValueInstantiators.Base.findValueInstantiator(DeserializationConfig config,
BeanDescription beanDesc,
ValueInstantiator defaultInstantiator) |
|
ValueInstantiator |
ValueInstantiators.findValueInstantiator(DeserializationConfig config,
BeanDescription beanDesc,
ValueInstantiator defaultInstantiator) |
Method called to find the
ValueInstantiator to use for creating
instances of specified type during deserialization. |
Object |
DeserializationProblemHandler.handleMissingInstantiator(DeserializationContext ctxt,
Class<?> instClass,
ValueInstantiator valueInsta,
com.fasterxml.jackson.core.JsonParser p,
String msg) |
Method called when instance creation for a type fails due to lack of an
instantiator.
|
void |
BeanDeserializerBuilder.setValueInstantiator(ValueInstantiator inst) |
Modifier and Type | Field | Description |
---|---|---|
protected ValueInstantiator |
PropertyBasedCreator._valueInstantiator |
Helper object that knows how to actually construct the instance by
invoking creator method with buffered arguments.
|
Modifier and Type | Method | Description |
---|---|---|
ValueInstantiator |
CreatorCollector.constructValueInstantiator(DeserializationConfig config) |
Modifier and Type | Method | Description |
---|---|---|
static PropertyBasedCreator |
PropertyBasedCreator.construct(DeserializationContext ctxt,
ValueInstantiator valueInstantiator,
SettableBeanProperty[] srcCreatorProps) |
Deprecated.
|
static PropertyBasedCreator |
PropertyBasedCreator.construct(DeserializationContext ctxt,
ValueInstantiator valueInstantiator,
SettableBeanProperty[] srcCreatorProps,
boolean caseInsensitive) |
Factory method used for building actual instances to be used with types
OTHER than POJOs.
|
static PropertyBasedCreator |
PropertyBasedCreator.construct(DeserializationContext ctxt,
ValueInstantiator valueInstantiator,
SettableBeanProperty[] srcCreatorProps,
BeanPropertyMap allProperties) |
Factory method used for building actual instances to be used with POJOS:
resolves deserializers, checks for "null values".
|
Constructor | Description |
---|---|
PropertyBasedCreator(DeserializationContext ctxt,
ValueInstantiator valueInstantiator,
SettableBeanProperty[] creatorProps,
boolean caseInsensitive,
boolean addAliases) |
Modifier and Type | Class | Description |
---|---|---|
class |
JsonLocationInstantiator |
For
JsonLocation , we should be able to just implement
ValueInstantiator (not that explicit one would be very
hard but...) |
class |
StdValueInstantiator |
Default
ValueInstantiator implementation, which supports
Creator methods that can be indicated by standard Jackson
annotations. |
Modifier and Type | Field | Description |
---|---|---|
protected ValueInstantiator |
CollectionDeserializer._valueInstantiator |
|
protected ValueInstantiator |
EnumMapDeserializer._valueInstantiator |
|
protected ValueInstantiator |
MapDeserializer._valueInstantiator |
|
protected ValueInstantiator |
ReferenceTypeDeserializer._valueInstantiator |
|
protected ValueInstantiator |
StringCollectionDeserializer._valueInstantiator |
Instantiator used in case custom handling is needed for creation.
|
Modifier and Type | Method | Description |
---|---|---|
ValueInstantiator |
CollectionDeserializer.getValueInstantiator() |
|
ValueInstantiator |
ContainerDeserializerBase.getValueInstantiator() |
|
ValueInstantiator |
MapDeserializer.getValueInstantiator() |
|
ValueInstantiator |
StringCollectionDeserializer.getValueInstantiator() |
Modifier and Type | Method | Description |
---|---|---|
static JsonDeserializer<?> |
EnumDeserializer.deserializerForCreator(DeserializationConfig config,
Class<?> enumClass,
AnnotatedMethod factory,
ValueInstantiator valueInstantiator,
SettableBeanProperty[] creatorProps) |
Factory method used when Enum instances are to be deserialized
using a creator (static factory method)
|
Modifier and Type | Field | Description |
---|---|---|
protected HashMap<ClassKey,ValueInstantiator> |
SimpleValueInstantiators._classMappings |
Mappings from raw (type-erased, i.e.
|
Modifier and Type | Method | Description |
---|---|---|
ValueInstantiator |
SimpleValueInstantiators.findValueInstantiator(DeserializationConfig config,
BeanDescription beanDesc,
ValueInstantiator defaultInstantiator) |
Modifier and Type | Method | Description |
---|---|---|
SimpleModule |
SimpleModule.addValueInstantiator(Class<?> beanType,
ValueInstantiator inst) |
Method for registering
ValueInstantiator to use when deserializing
instances of type beanType . |
SimpleValueInstantiators |
SimpleValueInstantiators.addValueInstantiator(Class<?> forType,
ValueInstantiator inst) |
|
ValueInstantiator |
SimpleValueInstantiators.findValueInstantiator(DeserializationConfig config,
BeanDescription beanDesc,
ValueInstantiator defaultInstantiator) |
Modifier and Type | Class | Description |
---|---|---|
class |
ConstantValueInstantiator |
Trivial
ValueInstantiator implementation that will simply return constant
Object it is configured with. |
Copyright © 2008–2018. All rights reserved.