java.lang.Object
tools.jackson.databind.deser.ValueInstantiators.Base
- All Implemented Interfaces:
ValueInstantiators
- Direct Known Subclasses:
SimpleValueInstantiators
- Enclosing interface:
- ValueInstantiators
Basic "NOP" implementation that can be used as the base class for custom implementations.
Safer to extend (instead of implementing
ValueInstantiators) in case later
Jackson versions add new methods in base interface.-
Nested Class Summary
Nested classes/interfaces inherited from interface tools.jackson.databind.deser.ValueInstantiators
ValueInstantiators.Base -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindValueInstantiator(DeserializationConfig config, BeanDescription.Supplier beanDescRef) Method called to find theValueInstantiatorto 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, waitMethods inherited from interface tools.jackson.databind.deser.ValueInstantiators
modifyValueInstantiator
-
Constructor Details
-
Base
public Base()
-
-
Method Details
-
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(tools.jackson.databind.DeserializationConfig, tools.jackson.databind.BeanDescription.Supplier, tools.jackson.databind.deser.ValueInstantiator)if you want to use or modify that.- Specified by:
findValueInstantiatorin interfaceValueInstantiators- 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".
-