Class OptimizedValueInstantiator

java.lang.Object
com.fasterxml.jackson.databind.deser.ValueInstantiator
com.fasterxml.jackson.databind.deser.std.StdValueInstantiator
com.fasterxml.jackson.module.afterburner.deser.OptimizedValueInstantiator
All Implemented Interfaces:
Serializable

public abstract class OptimizedValueInstantiator extends com.fasterxml.jackson.databind.deser.std.StdValueInstantiator
Base class for concrete bytecode-generated value instantiators.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.deser.ValueInstantiator

    com.fasterxml.jackson.databind.deser.ValueInstantiator.Base, com.fasterxml.jackson.databind.deser.ValueInstantiator.Delegating, com.fasterxml.jackson.databind.deser.ValueInstantiator.Gettable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final long
     

    Fields inherited from class com.fasterxml.jackson.databind.deser.std.StdValueInstantiator

    _arrayDelegateArguments, _arrayDelegateCreator, _arrayDelegateType, _constructorArguments, _defaultCreator, _delegateArguments, _delegateCreator, _delegateType, _fromBigDecimalCreator, _fromBigIntegerCreator, _fromBooleanCreator, _fromDoubleCreator, _fromIntCreator, _fromLongCreator, _fromStringCreator, _valueClass, _valueTypeDesc, _withArgsCreator
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Default constructor which is only used when creating dummy instance to call factory method.
    protected
    OptimizedValueInstantiator(com.fasterxml.jackson.databind.deser.std.StdValueInstantiator src)
    Copy-constructor to use for creating actual optimized instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
    _handleInstantiationProblem(com.fasterxml.jackson.databind.DeserializationContext ctxt, Exception e)
    Helper method needed to allow handling of instantiation exception in case of optimized no-args creator.
    boolean
    Need to override this, now that we have installed default creator.
    abstract Object
    createUsingDefault(com.fasterxml.jackson.databind.DeserializationContext ctxt)
     
    protected abstract OptimizedValueInstantiator
    with(com.fasterxml.jackson.databind.deser.std.StdValueInstantiator src)
     

    Methods inherited from class com.fasterxml.jackson.databind.deser.std.StdValueInstantiator

    canCreateFromBigDecimal, canCreateFromBigInteger, canCreateFromBoolean, canCreateFromDouble, canCreateFromInt, canCreateFromLong, canCreateFromObjectWith, canCreateFromString, canCreateUsingArrayDelegate, canCreateUsingDelegate, canInstantiate, configureFromArraySettings, configureFromBigDecimalCreator, configureFromBigIntegerCreator, configureFromBooleanCreator, configureFromDoubleCreator, configureFromIntCreator, configureFromLongCreator, configureFromObjectSettings, configureFromStringCreator, createFromBigDecimal, createFromBigInteger, createFromBoolean, createFromDouble, createFromInt, createFromLong, createFromObjectWith, createFromString, createUsingArrayDelegate, createUsingDefaultOrWithoutArguments, createUsingDelegate, getArrayDelegateCreator, getArrayDelegateType, getDefaultCreator, getDelegateCreator, getDelegateType, getFromObjectArguments, getValueClass, getValueTypeDesc, getWithArgsCreator, rewrapCtorProblem, unwrapAndWrapException, wrapAsJsonMappingException, wrapException

    Methods inherited from class com.fasterxml.jackson.databind.deser.ValueInstantiator

    _createFromStringFallbacks, createContextual, createFromObjectWith

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • OptimizedValueInstantiator

      protected OptimizedValueInstantiator()
      Default constructor which is only used when creating dummy instance to call factory method.
    • OptimizedValueInstantiator

      protected OptimizedValueInstantiator(com.fasterxml.jackson.databind.deser.std.StdValueInstantiator src)
      Copy-constructor to use for creating actual optimized instances.
  • Method Details

    • canCreateUsingDefault

      public boolean canCreateUsingDefault()
      Need to override this, now that we have installed default creator.
      Overrides:
      canCreateUsingDefault in class com.fasterxml.jackson.databind.deser.std.StdValueInstantiator
    • with

      protected abstract OptimizedValueInstantiator with(com.fasterxml.jackson.databind.deser.std.StdValueInstantiator src)
    • createUsingDefault

      public abstract Object createUsingDefault(com.fasterxml.jackson.databind.DeserializationContext ctxt) throws IOException
      Overrides:
      createUsingDefault in class com.fasterxml.jackson.databind.deser.std.StdValueInstantiator
      Throws:
      IOException
    • _handleInstantiationProblem

      protected Object _handleInstantiationProblem(com.fasterxml.jackson.databind.DeserializationContext ctxt, Exception e) throws IOException
      Helper method needed to allow handling of instantiation exception in case of optimized no-args creator.
      Throws:
      IOException
      Since:
      2.9