Class ValueInjector
- java.lang.Object
-
- org.codehaus.jackson.map.BeanProperty.Std
-
- org.codehaus.jackson.map.deser.impl.ValueInjector
-
- All Implemented Interfaces:
BeanProperty
,Named
public class ValueInjector extends BeanProperty.Std
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)- Since:
- 1.9
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.codehaus.jackson.map.BeanProperty
BeanProperty.Std
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Object
_valueId
Identifier used for looking up value to inject-
Fields inherited from class org.codehaus.jackson.map.BeanProperty.Std
_contextAnnotations, _member, _name, _type
-
-
Constructor Summary
Constructors Constructor Description ValueInjector(java.lang.String propertyName, JavaType type, Annotations contextAnnotations, AnnotatedMember mutator, java.lang.Object valueId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
findValue(DeserializationContext context, java.lang.Object beanInstance)
void
inject(DeserializationContext context, java.lang.Object beanInstance)
-
Methods inherited from class org.codehaus.jackson.map.BeanProperty.Std
getAnnotation, getContextAnnotation, getMember, getName, getType, withType
-
-
-
-
Constructor Detail
-
ValueInjector
public ValueInjector(java.lang.String propertyName, JavaType type, Annotations contextAnnotations, AnnotatedMember mutator, java.lang.Object valueId)
-
-
Method Detail
-
findValue
public java.lang.Object findValue(DeserializationContext context, java.lang.Object beanInstance)
-
inject
public void inject(DeserializationContext context, java.lang.Object beanInstance) throws java.io.IOException
- Throws:
java.io.IOException
-
-