- All Implemented Interfaces:
- Direct Known Subclasses:
- Enclosing interface:
public static class ValueInstantiators.Base extends Object implements ValueInstantiatorsBasic "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.
Constructors Constructor Description
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
findValueInstantiator(DeserializationConfig config, BeanDescription beanDesc, ValueInstantiator defaultInstantiator)Method called to find the
ValueInstantiatorto use for creating instances of specified type during deserialization.
public ValueInstantiator findValueInstantiator(DeserializationConfig config, BeanDescription beanDesc, ValueInstantiator defaultInstantiator)Description copied from interface:
ValueInstantiatorsMethod called to find the
ValueInstantiatorto 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)
- Specified by:
config- Deserialization configuration in use
beanDesc- Additional information about POJO type to be instantiated
defaultInstantiator- Instantiator that will be used if no changes are made; passed to allow custom instances to use annotation-provided information (note, however, that earlier
ValueInstantiatorsmay have changed it to a custom instantiator already)
- Instantiator to use; either
defaultInstantiatorthat was passed, or a custom variant; cannot be null.