Package com.fasterxml.jackson.databind
Class InjectableValues
- java.lang.Object
-
- com.fasterxml.jackson.databind.InjectableValues
-
- Direct Known Subclasses:
InjectableValues.Std
public abstract class InjectableValues extends java.lang.Object
Abstract 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 class
InjectableValues.Std
Simple 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 Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.Object
findInjectableValue(java.lang.Object valueId, DeserializationContext ctxt, BeanProperty forProperty, java.lang.Object beanInstance)
Method called to find value identified by idvalueId
to 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).
-
-
-
Method Detail
-
findInjectableValue
public abstract java.lang.Object findInjectableValue(java.lang.Object valueId, DeserializationContext ctxt, BeanProperty forProperty, java.lang.Object beanInstance) throws JsonMappingException
Method called to find value identified by idvalueId
to 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:
valueId
- Object that identifies value to inject; may be a simple name or more complex identifier object, whatever provider needsctxt
- Deserialization contextforProperty
- 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.- Throws:
JsonMappingException
-
-