Class ValueInstantiators.Base
java.lang.Object
edu.internet2.middleware.grouperClientExt.com.fasterxml.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 edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.deser.ValueInstantiators
ValueInstantiators.Base
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindValueInstantiator
(DeserializationConfig config, BeanDescription beanDesc, ValueInstantiator defaultInstantiator) Method called to find theValueInstantiator
to use for creating instances of specified type during deserialization.
-
Constructor Details
-
Base
public Base()
-
-
Method Details
-
findValueInstantiator
public ValueInstantiator findValueInstantiator(DeserializationConfig config, BeanDescription beanDesc, ValueInstantiator defaultInstantiator) Description copied from interface:ValueInstantiators
Method called to find theValueInstantiator
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)- Specified by:
findValueInstantiator
in interfaceValueInstantiators
- 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 earlierValueInstantiators
may have changed it to a custom instantiator already)- Returns:
- Instantiator to use; either
defaultInstantiator
that was passed, or a custom variant; cannot be null.
-