Package com.fasterxml.jackson.databind
Class InjectableValues
- java.lang.Object
-
- com.fasterxml.jackson.databind.InjectableValues
-
- Direct Known Subclasses:
InjectableValues.Base
public abstract class InjectableValues extends java.lang.ObjectAbstract class that defines API for objects that provide value to "inject" during deserialization. An instance of this object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInjectableValues.BaseShared intermediate base class for standard implementations.private static classInjectableValues.Emptystatic classInjectableValues.StdSimple standard implementation which uses a simple Map to store values to inject, identified by simple String keys.
-
Constructor Summary
Constructors Constructor Description InjectableValues()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static InjectableValuesempty()java.lang.ObjectfindInjectableValue(DeserializationContext ctxt, java.lang.Object valueId, BeanProperty forProperty, java.lang.Object beanInstance, java.lang.Boolean optional, java.lang.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).abstract java.lang.ObjectfindInjectableValue(java.lang.Object valueId, DeserializationContext ctxt, BeanProperty forProperty, java.lang.Object beanInstance)Deprecated.in 2.20 Use non-deprecated method instead
-
-
-
Method Detail
-
empty
public static InjectableValues empty()
- Since:
- 2.21
-
findInjectableValue
public java.lang.Object findInjectableValue(DeserializationContext ctxt, java.lang.Object valueId, BeanProperty forProperty, java.lang.Object beanInstance, java.lang.Boolean optional, java.lang.Boolean useInput) throws JsonMappingException
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 found- Throws:
JsonMappingException- Since:
- 2.20
-
findInjectableValue
@Deprecated public abstract java.lang.Object findInjectableValue(java.lang.Object valueId, DeserializationContext ctxt, BeanProperty forProperty, java.lang.Object beanInstance) throws JsonMappingExceptionDeprecated.in 2.20 Use non-deprecated method instead- Throws:
JsonMappingException
-
-