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

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)
  • Field Details

    • _valueId

      protected final Object _valueId
      Identifier used for looking up value to inject
    • _optional

      protected final Boolean _optional
      Flag used for configuring the behavior when the value to inject is not found.
    • _useInput

      protected final Boolean _useInput
      Flag used for configuring the behavior when the input value should be preferred over the value to inject.
  • Constructor Details

  • 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