Class SimpleValueInstantiators
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 ValueInstantiators
ValueInstantiators.Base -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HashMap<ClassKey, ValueInstantiator> Mappings from raw (type-erased, i.e.private static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValueInstantiator(Class<?> forType, ValueInstantiator inst) findValueInstantiator(DeserializationConfig config, BeanDescription.Supplier beanDescRef) Method called to find theValueInstantiatorto use for creating instances of specified type during deserialization.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ValueInstantiators
modifyValueInstantiator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
_classMappings
Mappings from raw (type-erased, i.e. non-generic) types to matchingValueInstantiatorinstances.
-
-
Constructor Details
-
SimpleValueInstantiators
public SimpleValueInstantiators()
-
-
Method Details
-
addValueInstantiator
-
findValueInstantiator
public ValueInstantiator findValueInstantiator(DeserializationConfig config, BeanDescription.Supplier beanDescRef) Description copied from interface:ValueInstantiatorsMethod called to find theValueInstantiatorto 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(DeserializationConfig, BeanDescription.Supplier, ValueInstantiator)if you want to use or modify that.- Specified by:
findValueInstantiatorin interfaceValueInstantiators- Overrides:
findValueInstantiatorin 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
nullto indicate "use default instantiator".
-