Class InjectableValues

java.lang.Object
tools.jackson.databind.InjectableValues
All Implemented Interfaces:
Snapshottable<InjectableValues>
Direct Known Subclasses:
InjectableValues.Base

public abstract class InjectableValues extends Object implements Snapshottable<InjectableValues>
Abstract class that defines API for objects that provide value to "inject" during deserialization. An instance of this object
  • Constructor Details

    • InjectableValues

      public InjectableValues()
  • Method Details

    • empty

      public static InjectableValues empty()
    • findInjectableValue

      public abstract Object findInjectableValue(DeserializationContext ctxt, Object valueId, BeanProperty forProperty, Object beanInstance, Boolean optional, Boolean useInput) throws JacksonException
      Method called to find value identified by id valueId to inject as value of specified property during deserialization, passing POJO instance in which value will be injected if it is available (will be available when injected via field or setter; not available when injected via constructor or factory method argument).
      Parameters:
      ctxt - Deserialization context
      valueId - Object that identifies value to inject; may be a simple name or more complex identifier object, whatever provider needs
      forProperty - Bean property in which value is to be injected
      beanInstance - Bean instance that contains property to inject, if available; null if bean has not yet been constructed.
      optional - Flag used for configuring the behavior when the value to inject is not found
      useInput -
      Throws:
      JacksonException