Class JsonLocationInstantiator
- java.lang.Object
-
- com.fasterxml.jackson.databind.deser.ValueInstantiator
-
- com.fasterxml.jackson.databind.deser.ValueInstantiator.Base
-
- com.fasterxml.jackson.databind.deser.std.JsonLocationInstantiator
-
- All Implemented Interfaces:
java.io.Serializable
public class JsonLocationInstantiator extends ValueInstantiator.Base
ForJsonLocation
, we should be able to just implementValueInstantiator
(not that explicit one would be very hard but...)- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.deser.ValueInstantiator
ValueInstantiator.Base, ValueInstantiator.Gettable
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class com.fasterxml.jackson.databind.deser.ValueInstantiator.Base
_valueType
-
-
Constructor Summary
Constructors Constructor Description JsonLocationInstantiator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int
_int(java.lang.Object o)
private static long
_long(java.lang.Object o)
boolean
canCreateFromObjectWith()
Method that can be called to check whether a property-based creator (argument-taking constructor or factory method) is available to instantiate values from JSON Objectjava.lang.Object
createFromObjectWith(DeserializationContext ctxt, java.lang.Object[] args)
Method called to create value instance from JSON Object when instantiation arguments are passed; this is done, for example when passing information specified with "Creator" annotations.private static CreatorProperty
creatorProp(java.lang.String name, JavaType type, int index)
SettableBeanProperty[]
getFromObjectArguments(DeserializationConfig config)
Method called to determine types of instantiation arguments to use when creating instances with creator arguments (whenValueInstantiator.canCreateFromObjectWith()
returns true).-
Methods inherited from class com.fasterxml.jackson.databind.deser.ValueInstantiator.Base
getValueClass, getValueTypeDesc
-
Methods inherited from class com.fasterxml.jackson.databind.deser.ValueInstantiator
_createFromStringFallbacks, canCreateFromBoolean, canCreateFromDouble, canCreateFromInt, canCreateFromLong, canCreateFromString, canCreateUsingArrayDelegate, canCreateUsingDefault, canCreateUsingDelegate, canInstantiate, createFromBoolean, createFromDouble, createFromInt, createFromLong, createFromObjectWith, createFromString, createUsingArrayDelegate, createUsingDefault, createUsingDelegate, getArrayDelegateCreator, getArrayDelegateType, getDefaultCreator, getDelegateCreator, getDelegateType, getIncompleteParameter, getWithArgsCreator
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
canCreateFromObjectWith
public boolean canCreateFromObjectWith()
Description copied from class:ValueInstantiator
Method that can be called to check whether a property-based creator (argument-taking constructor or factory method) is available to instantiate values from JSON Object- Overrides:
canCreateFromObjectWith
in classValueInstantiator
-
getFromObjectArguments
public SettableBeanProperty[] getFromObjectArguments(DeserializationConfig config)
Description copied from class:ValueInstantiator
Method called to determine types of instantiation arguments to use when creating instances with creator arguments (whenValueInstantiator.canCreateFromObjectWith()
returns true). These arguments are bound from JSON, using specified property types to locate deserializers.NOTE: all properties will be of type
CreatorProperty
.- Overrides:
getFromObjectArguments
in classValueInstantiator
-
creatorProp
private static CreatorProperty creatorProp(java.lang.String name, JavaType type, int index)
-
createFromObjectWith
public java.lang.Object createFromObjectWith(DeserializationContext ctxt, java.lang.Object[] args)
Description copied from class:ValueInstantiator
Method called to create value instance from JSON Object when instantiation arguments are passed; this is done, for example when passing information specified with "Creator" annotations.This method is called if
ValueInstantiator.getFromObjectArguments(com.fasterxml.jackson.databind.DeserializationConfig)
returns a non-empty List of arguments.- Overrides:
createFromObjectWith
in classValueInstantiator
-
_long
private static final long _long(java.lang.Object o)
-
_int
private static final int _int(java.lang.Object o)
-
-