Note that this type is not parameterized (even though it would seemingly
make sense), because such type information cannot be use effectively
during runtime: access is always using either wildcard type, or just
basic java.; and so adding type parameter seems
like unnecessary extra work.
Actual implementations are strongly recommended to be based on
com.
which implements all methods, and as such will be compatible
across versions even if new methods were added to this interface.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ValueInstantiator.
Partial |
| public static class | ValueInstantiator.
Delegating |
| public static interface |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | _createFromStringFallbacks(DeserializationContext ctxt, String value)
Deprecated
Since 2.12 should not handle coercions here
|
| public boolean | canCreateFromBigDecimal()
Method that can be called to check whether a BigDecimal based creator is available
to use (to call |
| public boolean | canCreateFromBigInteger()
Method that can be called to check whether a BigInteger based creator is available
to use (to call |
| public boolean | canCreateFromBoolean()
Method that can be called to check whether a double (boolean / Boolean) based
creator is available to use (to call |
| public boolean | canCreateFromDouble()
Method that can be called to check whether a double (double / Double) based
creator is available to use (to call |
| public boolean | canCreateFromInt()
Method that can be called to check whether an integer (int, Integer) based
creator is available to use (to call |
| public boolean | canCreateFromLong()
Method that can be called to check whether a long (long, Long) based
creator is available to use (to call |
| public 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 Object |
| public boolean | canCreateFromString()
Method that can be called to check whether a String-based creator is available for this instantiator. |
| public boolean | canCreateUsingArrayDelegate()
Method that can be called to check whether a array-delegate-based creator (single-arg constructor or factory method) is available for this instantiator |
| public boolean | 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 | canCreateUsingDelegate()
Method that can be called to check whether a delegate-based creator (single-arg constructor or factory method) is available for this instantiator |
| public boolean | canInstantiate()
Method that will return true if any of |
| public ValueInstantiator | Returns: This instance, if no change, or newly constructed instanceCurrently active deserialization context: needed to (for example)
resolving ctxt, BeanDescription beanDesc)com.s."Contextualization" method that is called after construction but before first use, to allow instantiator access to context needed to possible resolve its dependencies. |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | |
| public Object | createFromObjectWith(DeserializationContext ctxt, 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. |
| public Object | createFromObjectWith(DeserializationContext ctxt, SettableBeanProperty[] props, PropertyValueBuffer buffer)
Method that delegates to
|
| public Object | |
| public Object | createUsingArrayDelegate(DeserializationContext ctxt, Object delegate)
Method to called to create value instance from JSON Array using an intermediate "delegate" value to pass to createor method |
| public Object | createUsingDefault(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. |
| public Object | createUsingDefaultOrWithoutArguments(DeserializationContext ctxt)
Combination of |
| public Object | createUsingDelegate(DeserializationContext ctxt, Object delegate)
Method to called to create value instance from JSON Object using an intermediate "delegate" value to pass to createor method |
| public AnnotatedWithParams | getArrayDelegateCreator()
Method that can be called to try to access member (constructor, static factory method) that is used as the "array delegate creator". |
| public JavaType | getArrayDelegateType(DeserializationConfig config)
Method that can be used to determine what is the type of array delegate type to use, if any; if no delegates are used, will return null. |
| public AnnotatedWithParams | getDefaultCreator()
Method that can be called to try to access member (constructor, static factory method) that is used as the "default creator" (creator that is called without arguments; typically default [zero-argument] constructor of the type). |
| public AnnotatedWithParams | getDelegateCreator()
Method that can be called to try to access member (constructor, static factory method) that is used as the "delegate creator". |
| public JavaType | getDelegateType(DeserializationConfig config)
Method that can be used to determine what is the type of delegate type to use, if any; if no delegates are used, will return null. |
| public SettableBeanProperty[] | getFromObjectArguments(DeserializationConfig config)
Method called to determine types of instantiation arguments
to use when creating instances with creator arguments
(when |
| public Class | |
| public String | |
| public AnnotatedWithParams | getWithArgsCreator()
Method that can be called to try to access member (constructor, static factory method) that is used as the "non-default creator" (constructor or factory method that takes one or more arguments). |