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.*, java.util.concurrent.ConcurrentHashMap, 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
private static class
private abstract static class
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 JDKValueInstantiator
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final JDKValueInstantiators.ArrayListInstantiator
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
createUsingDefault(DeserializationContext ctxt)

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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.impl.JDKValueInstantiators.JDKValueInstantiator:
canCreateUsingDefaultcanInstantiate

Field Detail

INSTANCEback to summary
pack-priv static final JDKValueInstantiators.ArrayListInstantiator INSTANCE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.serialVersionUID.

Constructor Detail

ArrayListInstantiatorback to summary
public ArrayListInstantiator()

Method Detail

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

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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.ConcurrentHashMapInstantiator

extends JDKValueInstantiator
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
createUsingDefault(DeserializationContext ctxt)

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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.impl.JDKValueInstantiators.JDKValueInstantiator:
canCreateUsingDefaultcanInstantiate

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.serialVersionUID.

Constructor Detail

ConcurrentHashMapInstantiatorback to summary
public ConcurrentHashMapInstantiator()

Method Detail

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

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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 JDKValueInstantiator
Class Inheritance

Field Summary

Modifier and TypeField and Description
protected final Object
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final Object
createUsingDefault(DeserializationContext ctxt)

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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.impl.JDKValueInstantiators.JDKValueInstantiator:
canCreateUsingDefaultcanInstantiate

Field Detail

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

Hides com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.serialVersionUID.

Constructor Detail

ConstantValueInstantiatorback to summary
public ConstantValueInstantiator(Object value)

Method Detail

createUsingDefaultback to summary
public final Object createUsingDefault(DeserializationContext ctxt) throws IOException

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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 JDKValueInstantiator
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final JDKValueInstantiators.HashMapInstantiator
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
createUsingDefault(DeserializationContext ctxt)

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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.impl.JDKValueInstantiators.JDKValueInstantiator:
canCreateUsingDefaultcanInstantiate

Field Detail

INSTANCEback to summary
pack-priv static final JDKValueInstantiators.HashMapInstantiator INSTANCE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.serialVersionUID.

Constructor Detail

HashMapInstantiatorback to summary
public HashMapInstantiator()

Method Detail

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

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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.HashSetInstantiator

extends JDKValueInstantiator
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final JDKValueInstantiators.HashSetInstantiator
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
createUsingDefault(DeserializationContext ctxt)

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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.impl.JDKValueInstantiators.JDKValueInstantiator:
canCreateUsingDefaultcanInstantiate

Field Detail

INSTANCEback to summary
pack-priv static final JDKValueInstantiators.HashSetInstantiator INSTANCE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.serialVersionUID.

Constructor Detail

HashSetInstantiatorback to summary
public HashSetInstantiator()

Method Detail

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

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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 abstract Class JDKValueInstantiators.JDKValueInstantiator

extends Base
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.ArrayListInstantiator, com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.LinkedListInstantiator, com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.HashSetInstantiator, com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.TreeSetInstantiator, com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.ConcurrentHashMapInstantiator, com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.HashMapInstantiator, com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.LinkedHashMapInstantiator, com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.TreeMapInstantiator, com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.ConstantValueInstantiator

Field Summary

Modifier and TypeField and Description
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 final 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 final 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 abstract 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

serialVersionUIDback to summary
private static final long serialVersionUID

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

Constructor Detail

JDKValueInstantiatorback to summary
public JDKValueInstantiator(Class<?> type)

Method Detail

canCreateUsingDefaultback to summary
public final 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 final 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 abstract 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 JDKValueInstantiator
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final JDKValueInstantiators.LinkedHashMapInstantiator
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
createUsingDefault(DeserializationContext ctxt)

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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.impl.JDKValueInstantiators.JDKValueInstantiator:
canCreateUsingDefaultcanInstantiate

Field Detail

INSTANCEback to summary
pack-priv static final JDKValueInstantiators.LinkedHashMapInstantiator INSTANCE
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.serialVersionUID.

Constructor Detail

LinkedHashMapInstantiatorback to summary
public LinkedHashMapInstantiator()

Method Detail

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

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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.LinkedListInstantiator

extends JDKValueInstantiator
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
createUsingDefault(DeserializationContext ctxt)

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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.impl.JDKValueInstantiators.JDKValueInstantiator:
canCreateUsingDefaultcanInstantiate

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.serialVersionUID.

Constructor Detail

LinkedListInstantiatorback to summary
public LinkedListInstantiator()

Method Detail

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

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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.TreeMapInstantiator

extends JDKValueInstantiator
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
createUsingDefault(DeserializationContext ctxt)

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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.impl.JDKValueInstantiators.JDKValueInstantiator:
canCreateUsingDefaultcanInstantiate

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.serialVersionUID.

Constructor Detail

TreeMapInstantiatorback to summary
public TreeMapInstantiator()

Method Detail

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

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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.TreeSetInstantiator

extends JDKValueInstantiator
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
createUsingDefault(DeserializationContext ctxt)

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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.impl.JDKValueInstantiators.JDKValueInstantiator:
canCreateUsingDefaultcanInstantiate

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.serialVersionUID.

Constructor Detail

TreeSetInstantiatorback to summary
public TreeSetInstantiator()

Method Detail

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

Implements abstract com.fasterxml.jackson.databind.deser.impl.JDKValueInstantiators.JDKValueInstantiator.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