Class ValueInjector
java.lang.Object
com.fasterxml.jackson.databind.BeanProperty.Std
com.fasterxml.jackson.databind.deser.impl.ValueInjector
- All Implemented Interfaces:
BeanProperty, Named, Serializable
Class that encapsulates details of value injection that occurs before
deserialization of a POJO. Details include information needed to find
injectable value (logical id) as well as method used for assigning
value (setter or field)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface BeanProperty
BeanProperty.Bogus, BeanProperty.Std -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ObjectIdentifier used for looking up value to injectFields inherited from class BeanProperty.Std
_member, _metadata, _name, _type, _wrapperNameFields inherited from interface BeanProperty
EMPTY_FORMAT, EMPTY_INCLUDE -
Constructor Summary
ConstructorsConstructorDescriptionValueInjector(PropertyName propName, JavaType type, AnnotatedMember mutator, Object valueId) ValueInjector(PropertyName propName, JavaType type, Annotations contextAnnotations, AnnotatedMember mutator, Object valueId) Deprecated.in 2.9 (remove from 3.0) -
Method Summary
Modifier and TypeMethodDescriptionfindValue(DeserializationContext context, Object beanInstance) voidinject(DeserializationContext context, Object beanInstance) Methods inherited from class BeanProperty.Std
depositSchemaProperty, findAliases, findFormatOverrides, findPropertyFormat, findPropertyInclusion, getAnnotation, getContextAnnotation, getFullName, getMember, getMetadata, getName, getType, getWrapperName, isRequired, isVirtual, withType
-
Field Details
-
_valueId
Identifier used for looking up value to inject
-
-
Constructor Details
-
ValueInjector
-
ValueInjector
@Deprecated public ValueInjector(PropertyName propName, JavaType type, Annotations contextAnnotations, AnnotatedMember mutator, Object valueId) Deprecated.in 2.9 (remove from 3.0)
-
-
Method Details
-
findValue
public Object findValue(DeserializationContext context, Object beanInstance) throws JsonMappingException - Throws:
JsonMappingException
-
inject
- Throws:
IOException
-