public abstract class InjectableValues extends Object
限定符和类型 | 类和说明 |
---|---|
static class |
InjectableValues.Std
Simple standard implementation which uses a simple Map to
store values to inject, identified by simple String keys.
|
构造器和说明 |
---|
InjectableValues() |
限定符和类型 | 方法和说明 |
---|---|
abstract Object |
findInjectableValue(Object valueId,
DeserializationContext ctxt,
BeanProperty forProperty,
Object beanInstance)
Method called to find value identified by id
valueId 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). |
public abstract Object findInjectableValue(Object valueId, DeserializationContext ctxt, BeanProperty forProperty, Object beanInstance)
valueId
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).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.