Class JDKValueInstantiators.JDKValueInstantiator
- java.lang.Object
-
- com.fasterxml.jackson.databind.deser.ValueInstantiator
-
- com.fasterxml.jackson.databind.deser.ValueInstantiator.Base
-
- com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
JDKValueInstantiators.ArrayListInstantiator,JDKValueInstantiators.ConcurrentHashMapInstantiator,JDKValueInstantiators.ConstantValueInstantiator,JDKValueInstantiators.HashMapInstantiator,JDKValueInstantiators.HashSetInstantiator,JDKValueInstantiators.LinkedHashMapInstantiator,JDKValueInstantiators.LinkedHashSetInstantiator,JDKValueInstantiators.LinkedListInstantiator,JDKValueInstantiators.PropertiesInstantiator,JDKValueInstantiators.TreeMapInstantiator,JDKValueInstantiators.TreeSetInstantiator
- Enclosing class:
- JDKValueInstantiators
private abstract static class JDKValueInstantiators.JDKValueInstantiator extends ValueInstantiator.Base implements java.io.Serializable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.deser.ValueInstantiator
ValueInstantiator.Base, ValueInstantiator.Delegating, ValueInstantiator.Gettable
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID-
Fields inherited from class com.fasterxml.jackson.databind.deser.ValueInstantiator.Base
_valueType
-
-
Constructor Summary
Constructors Constructor Description JDKValueInstantiator(java.lang.Class<?> type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleancanCreateUsingDefault()Method that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiatorbooleancanInstantiate()Method that will return true if any ofcanCreateXxxmethod returns true: that is, if there is any way that an instance could be created.abstract java.lang.ObjectcreateUsingDefault(DeserializationContext ctxt)Method called to create value instance from a JSON value when no data needs to passed to creator (constructor, factory method); typically this will call the default constructor of the value object.-
Methods inherited from class com.fasterxml.jackson.databind.deser.ValueInstantiator.Base
getValueClass, getValueTypeDesc
-
Methods inherited from class com.fasterxml.jackson.databind.deser.ValueInstantiator
canCreateFromBigDecimal, canCreateFromBigInteger, canCreateFromBoolean, canCreateFromDouble, canCreateFromInt, canCreateFromLong, canCreateFromObjectWith, canCreateFromString, canCreateUsingArrayDelegate, canCreateUsingDelegate, createContextual, createFromBigDecimal, createFromBigInteger, createFromBoolean, createFromDouble, createFromInt, createFromLong, createFromObjectWith, createFromObjectWith, createFromString, createUsingArrayDelegate, createUsingDefaultOrWithoutArguments, createUsingDelegate, getArrayDelegateCreator, getArrayDelegateType, getDefaultCreator, getDelegateCreator, getDelegateType, getFromObjectArguments, getWithArgsCreator
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
canInstantiate
public final boolean canInstantiate()
Description copied from class:ValueInstantiatorMethod that will return true if any ofcanCreateXxxmethod returns true: that is, if there is any way that an instance could be created.- Overrides:
canInstantiatein classValueInstantiator
-
canCreateUsingDefault
public final boolean canCreateUsingDefault()
Description copied from class:ValueInstantiatorMethod that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiator- Overrides:
canCreateUsingDefaultin classValueInstantiator
-
createUsingDefault
public abstract java.lang.Object createUsingDefault(DeserializationContext ctxt) throws java.io.IOException
Description copied from class:ValueInstantiatorMethod called to create value instance from a JSON value when no data needs to passed to creator (constructor, factory method); typically this will call the default constructor of the value object. It will only be used if more specific creator methods are not applicable; hence "default".This method is called if
ValueInstantiator.getFromObjectArguments(com.fasterxml.jackson.databind.DeserializationConfig)returns null or empty List.- Overrides:
createUsingDefaultin classValueInstantiator- Throws:
java.io.IOException
-
-