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.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ValueInstantiator |
| JDKValueInstantiators | back to summary |
|---|---|
| public JDKValueInstantiators() | |
| findStdValueInstantiator | back to summary |
|---|---|
| public static ValueInstantiator findStdValueInstantiator(DeserializationConfig config, Class<?> raw) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final JDKValueInstantiators. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canCreateUsingDefault()
Overrides com. |
| public boolean | canInstantiate()
Overrides com. canCreateXxx method
returns true: that is, if there is any way that an instance could
be created.
|
| public Object | createUsingDefault(DeserializationContext ctxt)
Overrides com. |
| INSTANCE | back to summary |
|---|---|
| public static final JDKValueInstantiators. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| ArrayListInstantiator | back to summary |
|---|---|
| public ArrayListInstantiator() | |
| canCreateUsingDefault | back to summary |
|---|---|
| public boolean canCreateUsingDefault() Overrides com. Doc from com. Method that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiator
| |
| canInstantiate | back to summary |
|---|---|
| public boolean canInstantiate() Overrides com. Doc from com. Method that will return true if any of
| |
| createUsingDefault | back to summary |
|---|---|
| public Object createUsingDefault(DeserializationContext ctxt) throws IOException Overrides com. Doc from com. 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
| |
| Modifier and Type | Field and Description |
|---|---|
| protected final Object | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canCreateUsingDefault()
Overrides com. |
| public boolean | canInstantiate()
Overrides com. canCreateXxx method
returns true: that is, if there is any way that an instance could
be created.
|
| public Object | createUsingDefault(DeserializationContext ctxt)
Overrides com. |
| _value | back to summary |
|---|---|
| protected final Object _value | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| ConstantValueInstantiator | back to summary |
|---|---|
| public ConstantValueInstantiator(Object value) | |
| canCreateUsingDefault | back to summary |
|---|---|
| public boolean canCreateUsingDefault() Overrides com. Doc from com. Method that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiator
| |
| canInstantiate | back to summary |
|---|---|
| public boolean canInstantiate() Overrides com. Doc from com. Method that will return true if any of
| |
| createUsingDefault | back to summary |
|---|---|
| public Object createUsingDefault(DeserializationContext ctxt) throws IOException Overrides com. Doc from com. 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
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final JDKValueInstantiators. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canCreateUsingDefault()
Overrides com. |
| public boolean | canInstantiate()
Overrides com. canCreateXxx method
returns true: that is, if there is any way that an instance could
be created.
|
| public Object | createUsingDefault(DeserializationContext ctxt)
Overrides com. |
| INSTANCE | back to summary |
|---|---|
| public static final JDKValueInstantiators. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| HashMapInstantiator | back to summary |
|---|---|
| public HashMapInstantiator() | |
| canCreateUsingDefault | back to summary |
|---|---|
| public boolean canCreateUsingDefault() Overrides com. Doc from com. Method that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiator
| |
| canInstantiate | back to summary |
|---|---|
| public boolean canInstantiate() Overrides com. Doc from com. Method that will return true if any of
| |
| createUsingDefault | back to summary |
|---|---|
| public Object createUsingDefault(DeserializationContext ctxt) throws IOException Overrides com. Doc from com. 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
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final JDKValueInstantiators. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canCreateUsingDefault()
Overrides com. |
| public boolean | canInstantiate()
Overrides com. canCreateXxx method
returns true: that is, if there is any way that an instance could
be created.
|
| public Object | createUsingDefault(DeserializationContext ctxt)
Overrides com. |
| INSTANCE | back to summary |
|---|---|
| public static final JDKValueInstantiators. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| LinkedHashMapInstantiator | back to summary |
|---|---|
| public LinkedHashMapInstantiator() | |
| canCreateUsingDefault | back to summary |
|---|---|
| public boolean canCreateUsingDefault() Overrides com. Doc from com. Method that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiator
| |
| canInstantiate | back to summary |
|---|---|
| public boolean canInstantiate() Overrides com. Doc from com. Method that will return true if any of
| |
| createUsingDefault | back to summary |
|---|---|
| public Object createUsingDefault(DeserializationContext ctxt) throws IOException Overrides com. Doc from com. 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
| |