Top Fields Constructors Methods
com.fasterxml.jackson.databind.module

public Class SimpleValueInstantiators

extends Base
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.util.HashMap, com.fasterxml.jackson.databind.BeanDescription, .DeserializationConfig, com.fasterxml.jackson.databind.deser.ValueInstantiator, .ValueInstantiators, com.fasterxml.jackson.databind.type.ClassKey

Field Summary

Modifier and TypeField and Description
protected HashMap<ClassKey, ValueInstantiator>
_classMappings

Mappings from raw (type-erased, i.e. non-generic) types to matching ValueInstantiator instances.

private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public SimpleValueInstantiators
public ValueInstantiator
findValueInstantiator(DeserializationConfig
Deserialization configuration in use
config
,
BeanDescription
Additional information about POJO type to be instantiated
beanDesc
,
ValueInstantiator
Instantiator that will be used if no changes are made; passed to allow custom instances to use annotation-provided information (note, however, that earlier ValueInstantiators may have changed it to a custom instantiator already)
defaultInstantiator
)

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiators.Base.findValueInstantiator.

Implements com.fasterxml.jackson.databind.deser.ValueInstantiators.findValueInstantiator.

Method called to find the ValueInstantiator to use for creating instances of specified type during deserialization.

Field Detail

_classMappingsback to summary
protected HashMap<ClassKey, ValueInstantiator> _classMappings

Mappings from raw (type-erased, i.e. non-generic) types to matching ValueInstantiator instances.

serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

SimpleValueInstantiatorsback to summary
public SimpleValueInstantiators()

Method Detail

addValueInstantiatorback to summary
public SimpleValueInstantiators addValueInstantiator(Class<?> forType, ValueInstantiator inst)
findValueInstantiatorback to summary
public ValueInstantiator findValueInstantiator(DeserializationConfig config, BeanDescription beanDesc, ValueInstantiator defaultInstantiator)

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiators.Base.findValueInstantiator.

Implements com.fasterxml.jackson.databind.deser.ValueInstantiators.findValueInstantiator.

Doc from com.fasterxml.jackson.databind.deser.ValueInstantiators.findValueInstantiator.

Method called to find the ValueInstantiator to use for creating instances of specified type during deserialization. Note that a default value instantiator is always created first and passed; if an implementation does not want to modify or replace it, it has to return passed instance as is (returning null is an error)

Parameters
config:DeserializationConfig

Deserialization configuration in use

beanDesc:BeanDescription

Additional information about POJO type to be instantiated

defaultInstantiator:ValueInstantiator

Instantiator that will be used if no changes are made; passed to allow custom instances to use annotation-provided information (note, however, that earlier ValueInstantiators may have changed it to a custom instantiator already)

Returns:ValueInstantiator

Instantiator to use; either defaultInstantiator that was passed, or a custom variant; cannot be null.

Annotations
@Override