public class SimpleValueInstantiators extends ValueInstantiators.Base implements java.io.Serializable
ValueInstantiators.Base
Constructor and Description |
---|
SimpleValueInstantiators() |
Modifier and Type | Method and Description |
---|---|
SimpleValueInstantiators |
addValueInstantiator(java.lang.Class<?> forType,
ValueInstantiator inst) |
ValueInstantiator |
findValueInstantiator(DeserializationConfig config,
BeanDescription beanDesc,
ValueInstantiator defaultInstantiator)
Method called to find the
ValueInstantiator to use for creating
instances of specified type during deserialization. |
public SimpleValueInstantiators addValueInstantiator(java.lang.Class<?> forType, ValueInstantiator inst)
public ValueInstantiator findValueInstantiator(DeserializationConfig config, BeanDescription beanDesc, ValueInstantiator defaultInstantiator)
ValueInstantiators
ValueInstantiator
to 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)findValueInstantiator
in interface ValueInstantiators
findValueInstantiator
in class ValueInstantiators.Base
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 earlier ValueInstantiators
may have changed it to
a custom instantiator already)defaultInstantiator
that was passed,
or a custom variant; cannot be null.Copyright © 2010 - 2020 Adobe. All Rights Reserved