java.lang.Object
tools.jackson.databind.InjectableValues
- All Implemented Interfaces:
Snapshottable<InjectableValues>
- Direct Known Subclasses:
InjectableValues.Std
Abstract class that defines API for objects that provide value to
"inject" during deserialization. An instance of this object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSimple standard implementation which uses a simple Map to store values to inject, identified by simple String keys. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ObjectfindInjectableValue(DeserializationContext ctxt, Object valueId, BeanProperty forProperty, Object beanInstance, Boolean optional, Boolean useInput) Method called to find value identified by idvalueIdto inject as value of specified property during deserialization, passing POJO instance in which value will be injected if it is available (will be available when injected via field or setter; not available when injected via constructor or factory method argument).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tools.jackson.core.util.Snapshottable
snapshot
-
Constructor Details
-
InjectableValues
public InjectableValues()
-
-
Method Details
-
findInjectableValue
public abstract Object findInjectableValue(DeserializationContext ctxt, Object valueId, BeanProperty forProperty, Object beanInstance, Boolean optional, Boolean useInput) throws JacksonException Method called to find value identified by idvalueIdto inject as value of specified property during deserialization, passing POJO instance in which value will be injected if it is available (will be available when injected via field or setter; not available when injected via constructor or factory method argument).- Parameters:
ctxt- Deserialization contextvalueId- Object that identifies value to inject; may be a simple name or more complex identifier object, whatever provider needsforProperty- Bean property in which value is to be injectedbeanInstance- Bean instance that contains property to inject, if available; null if bean has not yet been constructed.optional- Flag used for configuring the behavior when the value to inject is not founduseInput-- Throws:
JacksonException
-