Top Description Inners Constructors Methods
com.fasterxml.jackson.databind.deser.impl

public abstract Class JDKValueInstantiators

extends Object
Class Inheritance
Imports
java.io.IOException, java.util.*, com.fasterxml.jackson.core.JsonLocation, com.fasterxml.jackson.databind.DeserializationConfig, .DeserializationContext, com.fasterxml.jackson.databind.deser.ValueInstantiator, com.fasterxml.jackson.databind.deser.std.JsonLocationInstantiator

Container for a set of ValueInstantiators used for certain critical JDK value types, either as performance optimization for initialization time observed by profiling, or due to difficulty in otherwise finding constructors.
Since
2.10

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static ValueInstantiator
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JDKValueInstantiatorsback to summary
public JDKValueInstantiators()

Method Detail

findStdValueInstantiatorback to summary
public static ValueInstantiator findStdValueInstantiator(DeserializationConfig config, Class<?> raw)
com.fasterxml.jackson.databind.deser.impl back to summary

private Class JDKValueInstantiators.ArrayListInstantiator

extends Base
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable

Field Summary

Modifier and TypeField and Description
public static final JDKValueInstantiators.ArrayListInstantiator
private static final long
Inherited from com.fasterxml.jackson.databind.deser.ValueInstantiator.Base:
_valueType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
canCreateUsingDefault()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canCreateUsingDefault.

Method that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiator
public boolean
canInstantiate()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canInstantiate.

Method that will return true if any of canCreateXxx method returns true: that is, if there is any way that an instance could be created.
public Object
createUsingDefault(DeserializationContext ctxt)

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.createUsingDefault.

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.
Inherited from com.fasterxml.jackson.databind.deser.ValueInstantiator.Base:
getValueClassgetValueTypeDesc

Field Detail

INSTANCEback to summary
public static final JDKValueInstantiators.ArrayListInstantiator INSTANCE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.ValueInstantiator.Base.serialVersionUID.

Constructor Detail

ArrayListInstantiatorback to summary
public ArrayListInstantiator()

Method Detail

canCreateUsingDefaultback to summary
public boolean canCreateUsingDefault()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canCreateUsingDefault.

Doc from com.fasterxml.jackson.databind.deser.ValueInstantiator.canCreateUsingDefault.

Method that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiator

Annotations
@Override
canInstantiateback to summary
public boolean canInstantiate()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canInstantiate.

Doc from com.fasterxml.jackson.databind.deser.ValueInstantiator.canInstantiate.

Method that will return true if any of canCreateXxx method returns true: that is, if there is any way that an instance could be created.

Annotations
@Override
createUsingDefaultback to summary
public Object createUsingDefault(DeserializationContext ctxt) throws IOException

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.createUsingDefault.

Doc from com.fasterxml.jackson.databind.deser.ValueInstantiator.createUsingDefault.

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. It will only be used if more specific creator methods are not applicable; hence "default".

This method is called if getFromObjectArguments returns null or empty List.

Annotations
@Override
com.fasterxml.jackson.databind.deser.impl back to summary

private Class JDKValueInstantiators.ConstantValueInstantiator

extends Base
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable

Field Summary

Modifier and TypeField and Description
protected final Object
private static final long
Inherited from com.fasterxml.jackson.databind.deser.ValueInstantiator.Base:
_valueType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
canCreateUsingDefault()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canCreateUsingDefault.

Method that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiator
public boolean
canInstantiate()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canInstantiate.

Method that will return true if any of canCreateXxx method returns true: that is, if there is any way that an instance could be created.
public Object
createUsingDefault(DeserializationContext ctxt)

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.createUsingDefault.

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.
Inherited from com.fasterxml.jackson.databind.deser.ValueInstantiator.Base:
getValueClassgetValueTypeDesc

Field Detail

_valueback to summary
protected final Object _value
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.ValueInstantiator.Base.serialVersionUID.

Constructor Detail

ConstantValueInstantiatorback to summary
public ConstantValueInstantiator(Object value)

Method Detail

canCreateUsingDefaultback to summary
public boolean canCreateUsingDefault()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canCreateUsingDefault.

Doc from com.fasterxml.jackson.databind.deser.ValueInstantiator.canCreateUsingDefault.

Method that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiator

Annotations
@Override
canInstantiateback to summary
public boolean canInstantiate()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canInstantiate.

Doc from com.fasterxml.jackson.databind.deser.ValueInstantiator.canInstantiate.

Method that will return true if any of canCreateXxx method returns true: that is, if there is any way that an instance could be created.

Annotations
@Override
createUsingDefaultback to summary
public Object createUsingDefault(DeserializationContext ctxt) throws IOException

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.createUsingDefault.

Doc from com.fasterxml.jackson.databind.deser.ValueInstantiator.createUsingDefault.

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. It will only be used if more specific creator methods are not applicable; hence "default".

This method is called if getFromObjectArguments returns null or empty List.

Annotations
@Override
com.fasterxml.jackson.databind.deser.impl back to summary

private Class JDKValueInstantiators.HashMapInstantiator

extends Base
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable

Field Summary

Modifier and TypeField and Description
public static final JDKValueInstantiators.HashMapInstantiator
private static final long
Inherited from com.fasterxml.jackson.databind.deser.ValueInstantiator.Base:
_valueType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
canCreateUsingDefault()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canCreateUsingDefault.

Method that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiator
public boolean
canInstantiate()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canInstantiate.

Method that will return true if any of canCreateXxx method returns true: that is, if there is any way that an instance could be created.
public Object
createUsingDefault(DeserializationContext ctxt)

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.createUsingDefault.

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.
Inherited from com.fasterxml.jackson.databind.deser.ValueInstantiator.Base:
getValueClassgetValueTypeDesc

Field Detail

INSTANCEback to summary
public static final JDKValueInstantiators.HashMapInstantiator INSTANCE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.ValueInstantiator.Base.serialVersionUID.

Constructor Detail

HashMapInstantiatorback to summary
public HashMapInstantiator()

Method Detail

canCreateUsingDefaultback to summary
public boolean canCreateUsingDefault()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canCreateUsingDefault.

Doc from com.fasterxml.jackson.databind.deser.ValueInstantiator.canCreateUsingDefault.

Method that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiator

Annotations
@Override
canInstantiateback to summary
public boolean canInstantiate()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canInstantiate.

Doc from com.fasterxml.jackson.databind.deser.ValueInstantiator.canInstantiate.

Method that will return true if any of canCreateXxx method returns true: that is, if there is any way that an instance could be created.

Annotations
@Override
createUsingDefaultback to summary
public Object createUsingDefault(DeserializationContext ctxt) throws IOException

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.createUsingDefault.

Doc from com.fasterxml.jackson.databind.deser.ValueInstantiator.createUsingDefault.

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. It will only be used if more specific creator methods are not applicable; hence "default".

This method is called if getFromObjectArguments returns null or empty List.

Annotations
@Override
com.fasterxml.jackson.databind.deser.impl back to summary

private Class JDKValueInstantiators.LinkedHashMapInstantiator

extends Base
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable

Field Summary

Modifier and TypeField and Description
public static final JDKValueInstantiators.LinkedHashMapInstantiator
private static final long
Inherited from com.fasterxml.jackson.databind.deser.ValueInstantiator.Base:
_valueType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
canCreateUsingDefault()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canCreateUsingDefault.

Method that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiator
public boolean
canInstantiate()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canInstantiate.

Method that will return true if any of canCreateXxx method returns true: that is, if there is any way that an instance could be created.
public Object
createUsingDefault(DeserializationContext ctxt)

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.createUsingDefault.

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.
Inherited from com.fasterxml.jackson.databind.deser.ValueInstantiator.Base:
getValueClassgetValueTypeDesc

Field Detail

INSTANCEback to summary
public static final JDKValueInstantiators.LinkedHashMapInstantiator INSTANCE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.ValueInstantiator.Base.serialVersionUID.

Constructor Detail

LinkedHashMapInstantiatorback to summary
public LinkedHashMapInstantiator()

Method Detail

canCreateUsingDefaultback to summary
public boolean canCreateUsingDefault()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canCreateUsingDefault.

Doc from com.fasterxml.jackson.databind.deser.ValueInstantiator.canCreateUsingDefault.

Method that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiator

Annotations
@Override
canInstantiateback to summary
public boolean canInstantiate()

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.canInstantiate.

Doc from com.fasterxml.jackson.databind.deser.ValueInstantiator.canInstantiate.

Method that will return true if any of canCreateXxx method returns true: that is, if there is any way that an instance could be created.

Annotations
@Override
createUsingDefaultback to summary
public Object createUsingDefault(DeserializationContext ctxt) throws IOException

Overrides com.fasterxml.jackson.databind.deser.ValueInstantiator.createUsingDefault.

Doc from com.fasterxml.jackson.databind.deser.ValueInstantiator.createUsingDefault.

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. It will only be used if more specific creator methods are not applicable; hence "default".

This method is called if getFromObjectArguments returns null or empty List.

Annotations
@Override