java.lang.Object
tools.jackson.databind.deser.ValueInstantiator
tools.jackson.databind.deser.ValueInstantiator.Base
- Direct Known Subclasses:
TokenStreamLocationInstantiator
- Enclosing class:
- ValueInstantiator
Partial
ValueInstantiator implementation that is strongly recommended
to be used instead of directly extending ValueInstantiator itself.-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.deser.ValueInstantiator
ValueInstantiator.Base, ValueInstantiator.Delegating, ValueInstantiator.Gettable -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateContextual(DeserializationContext ctxt, BeanDescription.Supplier beanDescRef) "Contextualization" method that is called after construction but before first use, to allow instantiator access to context needed to possible resolve its dependencies.Class<?>Accessor for raw (type-erased) type of instances to create.Method that returns description of the value type this instantiator handles.Methods inherited from class tools.jackson.databind.deser.ValueInstantiator
canCreateFromBigDecimal, canCreateFromBigInteger, canCreateFromBoolean, canCreateFromDouble, canCreateFromInt, canCreateFromLong, canCreateFromObjectWith, canCreateFromString, canCreateUsingArrayDelegate, canCreateUsingDefault, canCreateUsingDelegate, canInstantiate, createFromBigDecimal, createFromBigInteger, createFromBoolean, createFromDouble, createFromInt, createFromLong, createFromObjectWith, createFromObjectWith, createFromString, createUsingArrayDelegate, createUsingDefault, createUsingDefaultOrWithoutArguments, createUsingDelegate, getArrayDelegateCreator, getArrayDelegateType, getDefaultCreator, getDelegateCreator, getDelegateType, getFromObjectArguments, getWithArgsCreator
-
Field Details
-
_valueType
-
-
Constructor Details
-
Base
-
Base
-
-
Method Details
-
createContextual
public ValueInstantiator createContextual(DeserializationContext ctxt, BeanDescription.Supplier beanDescRef) Description copied from class:ValueInstantiator"Contextualization" method that is called after construction but before first use, to allow instantiator access to context needed to possible resolve its dependencies.- Specified by:
createContextualin classValueInstantiator- Parameters:
ctxt- Currently active deserialization context: needed to (for example) resolvingTypeDeserializers.- Returns:
- This instance, if no change, or newly constructed instance
-
getValueTypeDesc
Description copied from class:ValueInstantiatorMethod that returns description of the value type this instantiator handles. Used for error messages, diagnostics.- Specified by:
getValueTypeDescin classValueInstantiator
-
getValueClass
Description copied from class:ValueInstantiatorAccessor for raw (type-erased) type of instances to create.- Specified by:
getValueClassin classValueInstantiator
-