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:
java.io.Serializable
public abstract class OptimizedValueInstantiator extends com.fasterxml.jackson.databind.deser.std.StdValueInstantiator
Base class for concrete bytecode-generated value instantiators.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class com.fasterxml.jackson.databind.deser.std.StdValueInstantiator
_arrayDelegateArguments, _arrayDelegateCreator, _arrayDelegateType, _constructorArguments, _defaultCreator, _delegateArguments, _delegateCreator, _delegateType, _fromBooleanCreator, _fromDoubleCreator, _fromIntCreator, _fromLongCreator, _fromStringCreator, _incompleteParameter, _valueClass, _valueTypeDesc, _withArgsCreator
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OptimizedValueInstantiator()
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
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
_handleInstantiationProblem(com.fasterxml.jackson.databind.DeserializationContext ctxt, java.lang.Exception e)
Helper method needed to allow handling of instantiation exception in case of optimized no-args creator.boolean
canCreateUsingDefault()
Need to override this, now that we have installed default creator.abstract java.lang.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
canCreateFromBoolean, canCreateFromDouble, canCreateFromInt, canCreateFromLong, canCreateFromObjectWith, canCreateFromString, canCreateUsingArrayDelegate, canCreateUsingDelegate, canInstantiate, configureFromArraySettings, configureFromBooleanCreator, configureFromDoubleCreator, configureFromIntCreator, configureFromLongCreator, configureFromObjectSettings, configureFromStringCreator, configureIncompleteParameter, createFromBoolean, createFromDouble, createFromInt, createFromLong, createFromObjectWith, createFromString, createUsingArrayDelegate, createUsingDelegate, getArrayDelegateCreator, getArrayDelegateType, getDefaultCreator, getDelegateCreator, getDelegateType, getFromObjectArguments, getIncompleteParameter, getValueClass, getValueTypeDesc, getWithArgsCreator, rewrapCtorProblem, unwrapAndWrapException, wrapAsJsonMappingException, wrapException
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
canCreateUsingDefault
public boolean canCreateUsingDefault()
Need to override this, now that we have installed default creator.- Overrides:
canCreateUsingDefault
in classcom.fasterxml.jackson.databind.deser.std.StdValueInstantiator
-
with
protected abstract OptimizedValueInstantiator with(com.fasterxml.jackson.databind.deser.std.StdValueInstantiator src)
-
createUsingDefault
public abstract java.lang.Object createUsingDefault(com.fasterxml.jackson.databind.DeserializationContext ctxt) throws java.io.IOException
- Overrides:
createUsingDefault
in classcom.fasterxml.jackson.databind.deser.std.StdValueInstantiator
- Throws:
java.io.IOException
-
_handleInstantiationProblem
protected java.lang.Object _handleInstantiationProblem(com.fasterxml.jackson.databind.DeserializationContext ctxt, java.lang.Exception e) throws java.io.IOException
Helper method needed to allow handling of instantiation exception in case of optimized no-args creator.- Throws:
java.io.IOException
- Since:
- 2.9
-
-