A - adapted type, type to deserialize JSON intoT - required type, typically type of the field, which is adapted to another typejavax.json.bind.serializer.JsonbDeserializer<T>, RuntimeTypeInfo, CurrentItem<T>public class AdaptedObjectDeserializer<A,T> extends Object implements CurrentItem<T>, javax.json.bind.serializer.JsonbDeserializer<T>
JsonbAdapter.
After adapted item is finished building its instance is converted to field type object by calling components.| Constructor | Description |
|---|---|
AdaptedObjectDeserializer(AdapterBinding adapterInfo,
AbstractContainerDeserializer<?> wrapperItem) |
Creates decoration instance wrapping real adapted object item.
|
| Modifier and Type | Method | Description |
|---|---|---|
T |
deserialize(javax.json.stream.JsonParser parser,
javax.json.bind.serializer.DeserializationContext context,
Type rtType) |
|
ClassModel |
getClassModel() |
Class model containing property for this item.
|
Type |
getRuntimeType() |
Returns a runtime type.
|
CurrentItem<?> |
getWrapper() |
Item wrapper.
|
void |
setAdaptedTypeDeserializer(javax.json.bind.serializer.JsonbDeserializer<A> adaptedTypeDeserializer) |
Sets adapted item.
|
public AdaptedObjectDeserializer(AdapterBinding adapterInfo, AbstractContainerDeserializer<?> wrapperItem)
adapterInfo - components type infowrapperItem - wrapper item to get instance frompublic ClassModel getClassModel()
CurrentItemgetClassModel in interface CurrentItem<A>public CurrentItem<?> getWrapper()
CurrentItemgetWrapper in interface CurrentItem<A>getWrapper in interface RuntimeTypeInfopublic Type getRuntimeType()
RuntimeTypeInfoParameterizedType or TypeVariable.getRuntimeType in interface RuntimeTypeInfopublic void setAdaptedTypeDeserializer(javax.json.bind.serializer.JsonbDeserializer<A> adaptedTypeDeserializer)
adaptedTypeDeserializer - Adapted item to set.Copyright © 2018 Oracle Corporation. All rights reserved.