Class ValueInjector
java.lang.Object
tools.jackson.databind.BeanProperty.Std
tools.jackson.databind.deser.impl.ValueInjector
- All Implemented Interfaces:
tools.jackson.core.util.Named, BeanProperty, FullyNamed
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)
-
Nested Class Summary
Nested classes/interfaces inherited from interface BeanProperty
BeanProperty.Bogus, BeanProperty.StdNested classes/interfaces inherited from interface tools.jackson.core.util.Named
tools.jackson.core.util.Named.StringAsNamed -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BooleanFlag used for configuring the behavior when the value to inject is not found.protected final BooleanFlag used for configuring the behavior when the input value should be preferred over the value to inject.protected final ObjectIdentifier used for looking up value to injectprivate static final longFields 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, Boolean optional, Boolean useInput) -
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, withTypeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FullyNamed
hasName
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
_valueId
Identifier used for looking up value to inject -
_optional
Flag used for configuring the behavior when the value to inject is not found. -
_useInput
Flag used for configuring the behavior when the input value should be preferred over the value to inject.
-
-
Constructor Details
-
ValueInjector
public ValueInjector(PropertyName propName, JavaType type, AnnotatedMember mutator, Object valueId, Boolean optional, Boolean useInput)
-
-
Method Details
-
findValue
public Object findValue(DeserializationContext context, Object beanInstance) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
inject
public void inject(DeserializationContext context, Object beanInstance) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-