Package com.fasterxml.jackson.databind
Class InjectableValues.Std
- java.lang.Object
-
- com.fasterxml.jackson.databind.InjectableValues
-
- com.fasterxml.jackson.databind.InjectableValues.Std
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- InjectableValues
public static class InjectableValues.Std extends InjectableValues implements java.io.Serializable
Simple standard implementation which uses a simple Map to store values to inject, identified by simple String keys.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.InjectableValues
InjectableValues.Std
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InjectableValues.Std
addValue(java.lang.Class<?> classKey, java.lang.Object value)
InjectableValues.Std
addValue(java.lang.String key, java.lang.Object value)
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
-
addValue
public InjectableValues.Std addValue(java.lang.String key, java.lang.Object value)
-
addValue
public InjectableValues.Std addValue(java.lang.Class<?> classKey, java.lang.Object value)
-
findInjectableValue
public java.lang.Object findInjectableValue(java.lang.Object valueId, DeserializationContext ctxt, BeanProperty forProperty, java.lang.Object beanInstance) throws JsonMappingException
Description copied from class:InjectableValues
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).- Specified by:
findInjectableValue
in classInjectableValues
- 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
-
-