java.lang.Object
tools.jackson.databind.deser.ValueInstantiators.Base
tools.jackson.databind.module.SimpleValueInstantiators
- All Implemented Interfaces:
Serializable
,ValueInstantiators
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface tools.jackson.databind.deser.ValueInstantiators
ValueInstantiators.Base
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HashMap<ClassKey,
ValueInstantiator> Mappings from raw (type-erased, i.e. non-generic) types to matchingValueInstantiator
instances. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValueInstantiator
(Class<?> forType, ValueInstantiator inst) findValueInstantiator
(DeserializationConfig config, BeanDescription.Supplier beanDescRef) Method called to find theValueInstantiator
to use for creating instances of specified type during deserialization.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tools.jackson.databind.deser.ValueInstantiators
modifyValueInstantiator
-
Field Details
-
_classMappings
Mappings from raw (type-erased, i.e. non-generic) types to matchingValueInstantiator
instances.
-
-
Constructor Details
-
SimpleValueInstantiators
public SimpleValueInstantiators()
-
-
Method Details
-
addValueInstantiator
-
findValueInstantiator
public ValueInstantiator findValueInstantiator(DeserializationConfig config, BeanDescription.Supplier beanDescRef) Description copied from interface:ValueInstantiators
Method called to find theValueInstantiator
to use for creating instances of specified type during deserialization.Note that unlike with 2.0, no default instantiator is passed at this point: there is a separate method,
ValueInstantiators.modifyValueInstantiator(tools.jackson.databind.DeserializationConfig, tools.jackson.databind.BeanDescription.Supplier, tools.jackson.databind.deser.ValueInstantiator)
if you want to use or modify that.- Specified by:
findValueInstantiator
in interfaceValueInstantiators
- Overrides:
findValueInstantiator
in classValueInstantiators.Base
- Parameters:
config
- Deserialization configuration in usebeanDescRef
- Additional information about POJO type to be instantiated- Returns:
- Instantiator to use if custom one wanted, or
null
to indicate "use default instantiator".
-