Package | Description |
---|---|
org.codehaus.jackson.map |
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser |
org.codehaus.jackson.map.deser |
Contains implementation classes of deserialization part of
data binding.
|
org.codehaus.jackson.map.deser.std |
Contains public standard implementations of abstraction that
Jackson uses.
|
org.codehaus.jackson.map.ext |
Contains extended support for "external" packages: things that
may or may not be present in runtime environment, but that are
commonly enough used so that explicit support can be added.
|
org.codehaus.jackson.map.module |
Package that contains classes and interfaces to help implement
custom extension
Module s
(which are registered using
ObjectMapper.registerModule(org.codehaus.jackson.map.Module) . |
Modifier and Type | Field and Description |
---|---|
protected DeserializerProvider |
ObjectMapper._deserializerProvider
Object that manages access to deserializers used for deserializing
JSON content into Java objects, including possible caching
of the deserializers.
|
protected DeserializerProvider |
ObjectReader._provider |
Modifier and Type | Method and Description |
---|---|
DeserializerProvider |
ObjectMapper.getDeserializerProvider() |
DeserializerProvider |
DeserializationContext.getDeserializerProvider()
Returns provider that can be used for dynamically locating
other deserializers during runtime.
|
abstract DeserializerProvider |
DeserializerProvider.withAbstractTypeResolver(AbstractTypeResolver resolver) |
abstract DeserializerProvider |
DeserializerProvider.withAdditionalDeserializers(Deserializers d)
Method that is to configure
DeserializerFactory that provider has
to use specified deserializer provider, with highest precedence (that is,
additional providers have higher precedence than default one or previously
added ones) |
abstract DeserializerProvider |
DeserializerProvider.withAdditionalKeyDeserializers(KeyDeserializers d) |
abstract DeserializerProvider |
DeserializerProvider.withDeserializerModifier(BeanDeserializerModifier modifier) |
abstract DeserializerProvider |
DeserializerProvider.withFactory(DeserializerFactory factory)
Method that sub-classes need to override, to ensure that fluent-factory
methods will produce proper sub-type.
|
abstract DeserializerProvider |
DeserializerProvider.withValueInstantiators(ValueInstantiators instantiators)
Method that will construct a new instance with specified additional value instantiators
(i.e.
|
Modifier and Type | Method and Description |
---|---|
abstract JsonDeserializer<?> |
DeserializerFactory.createArrayDeserializer(DeserializationConfig config,
DeserializerProvider p,
ArrayType type,
BeanProperty property)
Method called to create (or, for completely immutable deserializers,
reuse) a deserializer that can convert JSON content into values of
specified Java type.
|
abstract JsonDeserializer<Object> |
DeserializerFactory.createBeanDeserializer(DeserializationConfig config,
DeserializerProvider p,
JavaType type,
BeanProperty property)
Method called to create (or, for completely immutable deserializers,
reuse) a deserializer that can convert JSON content into values of
specified Java "bean" (POJO) type.
|
abstract JsonDeserializer<?> |
DeserializerFactory.createCollectionDeserializer(DeserializationConfig config,
DeserializerProvider p,
CollectionType type,
BeanProperty property) |
abstract JsonDeserializer<?> |
DeserializerFactory.createCollectionLikeDeserializer(DeserializationConfig config,
DeserializerProvider p,
CollectionLikeType type,
BeanProperty property) |
abstract JsonDeserializer<?> |
DeserializerFactory.createEnumDeserializer(DeserializationConfig config,
DeserializerProvider p,
JavaType type,
BeanProperty property) |
abstract JsonDeserializer<?> |
DeserializerFactory.createMapDeserializer(DeserializationConfig config,
DeserializerProvider p,
MapType type,
BeanProperty property) |
abstract JsonDeserializer<?> |
DeserializerFactory.createMapLikeDeserializer(DeserializationConfig config,
DeserializerProvider p,
MapLikeType type,
BeanProperty property) |
abstract JsonDeserializer<?> |
DeserializerFactory.createTreeDeserializer(DeserializationConfig config,
DeserializerProvider p,
JavaType type,
BeanProperty property)
Method called to create and return a deserializer that can construct
JsonNode(s) from JSON content.
|
JsonDeserializer<?> |
Deserializers.findArrayDeserializer(ArrayType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanProperty property,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer)
Method called to locate serializer for specified array type.
|
JsonDeserializer<?> |
Deserializers.Base.findArrayDeserializer(ArrayType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanProperty property,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
JsonDeserializer<?> |
Deserializers.findBeanDeserializer(JavaType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property)
Method called to locate deserializer for specified value type which does not belong to any other
category (not an Enum, Collection, Map, Array or tree node)
|
JsonDeserializer<?> |
Deserializers.Base.findBeanDeserializer(JavaType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property) |
JsonDeserializer<?> |
Deserializers.findCollectionDeserializer(CollectionType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer)
Method called to locate serializer for specified
Collection (List, Set etc) type. |
JsonDeserializer<?> |
Deserializers.Base.findCollectionDeserializer(CollectionType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
JsonDeserializer<?> |
Deserializers.findCollectionLikeDeserializer(CollectionLikeType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer)
Method called to locate serializer for specified
"Collection-like" type (one that acts
like
Collection but does not implement it). |
JsonDeserializer<?> |
Deserializers.Base.findCollectionLikeDeserializer(CollectionLikeType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
JsonDeserializer<?> |
Deserializers.findMapDeserializer(MapType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
KeyDeserializer keyDeserializer,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer)
Method called to locate deserializer for specified
Map type. |
JsonDeserializer<?> |
Deserializers.Base.findMapDeserializer(MapType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
KeyDeserializer keyDeserializer,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
JsonDeserializer<?> |
Deserializers.findMapLikeDeserializer(MapLikeType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
KeyDeserializer keyDeserializer,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer)
Method called to locate serializer for specified
"Map-like" type (one that acts
like
Map but does not implement it). |
JsonDeserializer<?> |
Deserializers.Base.findMapLikeDeserializer(MapLikeType type,
DeserializationConfig config,
DeserializerProvider provider,
BeanDescription beanDesc,
BeanProperty property,
KeyDeserializer keyDeserializer,
TypeDeserializer elementTypeDeserializer,
JsonDeserializer<?> elementDeserializer) |
void |
ResolvableDeserializer.resolve(DeserializationConfig config,
DeserializerProvider provider)
Method called after
DeserializerProvider has registered
the deserializer, but before it has returned it to the caller. |
ObjectMapper |
ObjectMapper.setDeserializerProvider(DeserializerProvider p)
Method for setting specific
DeserializerProvider to use
for handling caching of JsonDeserializer instances. |
Constructor and Description |
---|
ObjectMapper(JsonFactory jf,
SerializerProvider sp,
DeserializerProvider dp) |
ObjectMapper(JsonFactory jf,
SerializerProvider sp,
DeserializerProvider dp,
SerializationConfig sconfig,
DeserializationConfig dconfig) |
Modifier and Type | Class and Description |
---|---|
class |
StdDeserializerProvider
Default
DeserializerProvider implementation. |
Modifier and Type | Field and Description |
---|---|
protected DeserializerProvider |
StdDeserializationContext._deserProvider |
Modifier and Type | Method and Description |
---|---|
DeserializerProvider |
StdDeserializationContext.getDeserializerProvider() |
DeserializerProvider |
StdDeserializerProvider.withAbstractTypeResolver(AbstractTypeResolver resolver) |
DeserializerProvider |
StdDeserializerProvider.withAdditionalDeserializers(Deserializers d) |
DeserializerProvider |
StdDeserializerProvider.withAdditionalKeyDeserializers(KeyDeserializers d) |
DeserializerProvider |
StdDeserializerProvider.withDeserializerModifier(BeanDeserializerModifier modifier) |
DeserializerProvider |
StdDeserializerProvider.withValueInstantiators(ValueInstantiators instantiators) |
Constructor and Description |
---|
StdDeserializationContext(DeserializationConfig config,
JsonParser jp,
DeserializerProvider prov,
InjectableValues injectableValues) |
Modifier and Type | Method and Description |
---|---|
protected JsonDeserializer<Object> |
StdDeserializer.findDeserializer(DeserializationConfig config,
DeserializerProvider provider,
JavaType type,
BeanProperty property)
Helper method used to locate deserializers for properties the
type this deserializer handles contains (usually for properties of
bean types)
|
void |
StringCollectionDeserializer.resolve(DeserializationConfig config,
DeserializerProvider provider)
Method called to finalize setup of this deserializer,
after deserializer itself has been registered.
|
void |
MapDeserializer.resolve(DeserializationConfig config,
DeserializerProvider provider)
Method called to finalize setup of this deserializer,
after deserializer itself has been registered.
|
void |
CollectionDeserializer.resolve(DeserializationConfig config,
DeserializerProvider provider)
Method called to finalize setup of this deserializer,
after deserializer itself has been registered.
|
void |
AtomicReferenceDeserializer.resolve(DeserializationConfig config,
DeserializerProvider provider) |
Modifier and Type | Method and Description |
---|---|
JsonDeserializer<?> |
OptionalHandlerFactory.findDeserializer(JavaType type,
DeserializationConfig config,
DeserializerProvider p) |