Top Description Fields Constructors Methods
tools.jackson.databind.deser.impl

public Class ValueInjector

extends Std
Class Inheritance
Imports
com.fasterxml.jackson.annotation.JacksonInject, tools.jackson.core.JacksonException, tools.jackson.databind.*, tools.jackson.databind.introspect.AnnotatedMember

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)

Field Summary

Modifier and TypeField and Description
protected final Boolean
_optional

Flag used for configuring the behavior when the value to inject is not found.

protected final Boolean
_useInput

Flag used for configuring the behavior when the input value should be preferred over the value to inject.

protected final Object
_valueId

Identifier used for looking up value to inject

private static final long
Inherited from tools.jackson.databind.BeanProperty.Std:
_member_metadata_name_type_wrapperName

Constructor Summary

AccessConstructor and Description
public
ValueInjector(PropertyName propName, JavaType type, AnnotatedMember mutator, Object valueId, Boolean optional, Boolean useInput)

Method Summary

Modifier and TypeMethod and Description
public Object
findValue(DeserializationContext context, Object beanInstance)

public void
inject(DeserializationContext context, Object beanInstance)

Inherited from tools.jackson.databind.BeanProperty.Std:
depositSchemaPropertyfindAliasesfindFormatOverridesfindPropertyFormatfindPropertyInclusiongetAnnotationgetContextAnnotationgetFullNamegetMembergetMetadatagetNamegetTypegetWrapperNameisRequiredisVirtualwithType

Field Detail

_optionalback to summary
protected final Boolean _optional

Flag used for configuring the behavior when the value to inject is not found.

_useInputback to summary
protected final Boolean _useInput

Flag used for configuring the behavior when the input value should be preferred over the value to inject.

_valueIdback to summary
protected final Object _valueId

Identifier used for looking up value to inject

serialVersionUIDback to summary
private static final long serialVersionUID

Hides tools.jackson.databind.BeanProperty.Std.serialVersionUID.

Constructor Detail

ValueInjectorback to summary
public ValueInjector(PropertyName propName, JavaType type, AnnotatedMember mutator, Object valueId, Boolean optional, Boolean useInput)

Method Detail

findValueback to summary
public Object findValue(DeserializationContext context, Object beanInstance) throws JacksonException
injectback to summary
public void inject(DeserializationContext context, Object beanInstance) throws JacksonException