public final class DeserializerContext
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeFields(UnmodifiableConfig source,
java.lang.Object destination)
Deserializes a configuration by transforming its entries into fields of the
destination object. |
java.lang.Object |
deserializeValue(java.lang.Object value,
java.util.Optional<TypeConstraint> typeConstraint)
Deserializes a single value in way that satisfies the given type constraint.
|
public java.lang.Object deserializeValue(java.lang.Object value,
java.util.Optional<TypeConstraint> typeConstraint)
value - value coming from the config that we are deserializingtypeConstraint - the type that we want to produceSerdeException - if no suitable deserializer is foundpublic void deserializeFields(UnmodifiableConfig source, java.lang.Object destination)
destination object.source - the config that we are deserializingdestination - the object that we are modifying (result of the deserialization)