Class InjectableValues.Std

java.lang.Object
tools.jackson.databind.InjectableValues
tools.jackson.databind.InjectableValues.Std
All Implemented Interfaces:
Serializable, Snapshottable<InjectableValues>
Enclosing class:
InjectableValues

public static class InjectableValues.Std extends InjectableValues implements Serializable
Simple standard implementation which uses a simple Map to store values to inject, identified by simple String keys.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • addValue

      public InjectableValues.Std addValue(String key, Object value)
    • addValue

      public InjectableValues.Std addValue(Class<?> classKey, Object value)
    • snapshot

      public InjectableValues.Std snapshot()
      Specified by:
      snapshot in interface Snapshottable<InjectableValues>
    • findInjectableValue

      public Object findInjectableValue(DeserializationContext ctxt, Object valueId, BeanProperty forProperty, Object beanInstance, Boolean optional)
      Description copied from class: InjectableValues
      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).
      Specified by:
      findInjectableValue in class InjectableValues
      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