public class ValueInjector extends BeanProperty.Std
BeanProperty.Bogus, BeanProperty.Std| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
_optional
Flag used for configuring the behavior when the value to inject is not found.
|
protected Boolean |
_useInput
Flag used for configuring the behavior when the input value should be preferred
over the value to inject.
|
protected Object |
_valueId
Identifier used for looking up value to inject
|
_member, _metadata, _name, _type, _wrapperNameEMPTY_FORMAT, EMPTY_INCLUDE| Constructor and Description |
|---|
ValueInjector(PropertyName propName,
JavaType type,
AnnotatedMember mutator,
Object valueId)
Deprecated.
in 2.20 (remove from 3.0)
|
ValueInjector(PropertyName propName,
JavaType type,
AnnotatedMember mutator,
Object valueId,
Boolean optional,
Boolean useInput) |
| Modifier and Type | Method and Description |
|---|---|
Object |
findValue(DeserializationContext context,
Object beanInstance) |
void |
inject(DeserializationContext context,
Object beanInstance) |
depositSchemaProperty, findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getAnnotation, getContextAnnotation, getFullName, getMember, getMetadata, getName, getType, getWrapperName, isRequired, isVirtual, withTypeprotected final Object _valueId
protected final Boolean _optional
protected final Boolean _useInput
public ValueInjector(PropertyName propName, JavaType type, AnnotatedMember mutator, Object valueId, Boolean optional, Boolean useInput)
@Deprecated public ValueInjector(PropertyName propName, JavaType type, AnnotatedMember mutator, Object valueId)
public Object findValue(DeserializationContext context, Object beanInstance) throws JsonMappingException
JsonMappingExceptionpublic void inject(DeserializationContext context, Object beanInstance) throws IOException
IOExceptionCopyright © 2008–2025 FasterXML. All rights reserved.