Class SimpleValueInstantiators
java.lang.Object
com.fasterxml.jackson.databind.deser.ValueInstantiators.Base
com.fasterxml.jackson.databind.module.SimpleValueInstantiators
- All Implemented Interfaces:
ValueInstantiators,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.deser.ValueInstantiators
ValueInstantiators.Base -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValueInstantiator(Class<?> forType, ValueInstantiator inst) findValueInstantiator(DeserializationConfig config, BeanDescription beanDesc, ValueInstantiator defaultInstantiator) Method called to find theValueInstantiatorto use for creating instances of specified type during deserialization.
-
Constructor Details
-
SimpleValueInstantiators
public SimpleValueInstantiators()
-
-
Method Details
-
addValueInstantiator
-
findValueInstantiator
public ValueInstantiator findValueInstantiator(DeserializationConfig config, BeanDescription beanDesc, ValueInstantiator defaultInstantiator) Description copied from interface:ValueInstantiatorsMethod called to find theValueInstantiatorto 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:
findValueInstantiatorin interfaceValueInstantiators- Overrides:
findValueInstantiatorin classValueInstantiators.Base- Parameters:
config- Deserialization configuration in usebeanDesc- Additional information about POJO type to be instantiateddefaultInstantiator- Instantiator that will be used if no changes are made; passed to allow custom instances to use annotation-provided information (note, however, that earlierValueInstantiatorsmay have changed it to a custom instantiator already)- Returns:
- Instantiator to use; either
defaultInstantiatorthat was passed, or a custom variant; cannot be null.
-