| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | OptimizedValueInstantiator()
Default constructor which is only used when creating dummy instance to call factory method. |
| protected | OptimizedValueInstantiator(StdValueInstantiator src)
Copy-constructor to use for creating actual optimized instances. |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | _handleInstantiationProblem(DeserializationContext ctxt, Exception e)
Helper method needed to allow handling of instantiation exception in case of optimized no-args creator. |
| public boolean | canCreateUsingDefault()
Overrides com. Need to override this, now that we have installed default creator. |
| public abstract 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. |
| protected abstract OptimizedValueInstantiator |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| OptimizedValueInstantiator | back to summary |
|---|---|
| protected OptimizedValueInstantiator() Default constructor which is only used when creating dummy instance to call factory method. | |
| OptimizedValueInstantiator | back to summary |
|---|---|
| protected OptimizedValueInstantiator(StdValueInstantiator src) Copy-constructor to use for creating actual optimized instances. | |
| _handleInstantiationProblem | back to summary |
|---|---|
| protected Object _handleInstantiationProblem(DeserializationContext ctxt, Exception e) throws IOException Helper method needed to allow handling of instantiation exception in case of optimized no-args creator.
| |
| canCreateUsingDefault | back to summary |
|---|---|
| public boolean canCreateUsingDefault() Overrides com. Need to override this, now that we have installed default creator.
| |
| createUsingDefault | back to summary |
|---|---|
| public abstract 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
| |
| with | back to summary |
|---|---|
| protected abstract OptimizedValueInstantiator with(StdValueInstantiator src) | |