| Modifier and Type | Field and Description |
|---|---|
| private final Function | |
| private final Supplier | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | OptimizedValueInstantiator(StdValueInstantiator original, Supplier<?> defaultCreator, Function<Object[], Object> argsCreator)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canCreateFromObjectWith()
Overrides com. 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 | canCreateUsingDefault()
Overrides com. Method that can be called to check whether a default creator (constructor, or no-arg static factory method) is available for this instantiator |
| public Object | createFromObjectWith(DeserializationContext ctxt, Object[] args)
Overrides com. 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 | createUsingDefault(DeserializationContext ctxt)
Overrides 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. |
| _optimizedArgsCreator | back to summary |
|---|---|
| private final Function<Object[], Object> _optimizedArgsCreator | |
| _optimizedDefaultCreator | back to summary |
|---|---|
| private final Supplier<?> _optimizedDefaultCreator | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| OptimizedValueInstantiator | back to summary |
|---|---|
| protected OptimizedValueInstantiator(StdValueInstantiator original, Supplier<?> defaultCreator, Function<Object[], Object> argsCreator) | |
| canCreateFromObjectWith | back to summary |
|---|---|
| public boolean canCreateFromObjectWith() Overrides com. Doc from com. 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
| |
| 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
| |
| createFromObjectWith | back to summary |
|---|---|
| public Object createFromObjectWith(DeserializationContext ctxt, Object[] args) throws IOException Overrides com. Doc from com. 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.
This method is called if
| |
| 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
| |