Class JavaObjectDeserializer
- All Implemented Interfaces:
tools.jackson.databind.deser.NullValueProvider
Jackson 3 removed the no-arg constructor from UntypedObjectDeserializer, so it can no
longer be referenced directly via @JsonDeserialize(contentUsing = ...). This wrapper
provides the required no-arg constructor and delegates to UntypedObjectDeserializer.
The delegate is constructed with null list/map types, matching Jackson 2's no-arg
constructor: nested JSON objects and arrays are bound to LinkedHashMap and
ArrayList via the deserializer's own logic, without registering custom
collection deserializers that DefaultScalaModule would override.
Required when DefaultScalaModule is registered: without this, nested map values are
deserialized as Scala collections (e.g. Map1), which the XL type system cannot store
into MAP_STRING_STRING and similar Java-only property types.
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.ValueDeserializer
tools.jackson.databind.ValueDeserializer.None -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontools.jackson.databind.ValueDeserializer<?> createContextual(tools.jackson.databind.DeserializationContext ctxt, tools.jackson.databind.BeanProperty property) deserialize(tools.jackson.core.JsonParser parser, tools.jackson.databind.DeserializationContext context) deserialize(tools.jackson.core.JsonParser parser, tools.jackson.databind.DeserializationContext context, Object intoValue) deserializeWithType(tools.jackson.core.JsonParser parser, tools.jackson.databind.DeserializationContext context, tools.jackson.databind.jsontype.TypeDeserializer typeDeserializer) getAbsentValue(tools.jackson.databind.DeserializationContext ctxt) tools.jackson.databind.ValueDeserializer<?> getEmptyValue(tools.jackson.databind.DeserializationContext ctxt) getNullValue(tools.jackson.databind.DeserializationContext ctxt) Class<?> booleantools.jackson.databind.type.LogicalTypevoidresolve(tools.jackson.databind.DeserializationContext ctxt) supportsUpdate(tools.jackson.databind.DeserializationConfig config) tools.jackson.databind.ValueDeserializer<Object> unwrappingDeserializer(tools.jackson.databind.DeserializationContext ctxt, tools.jackson.databind.util.NameTransformer transformer) Methods inherited from class tools.jackson.databind.ValueDeserializer
deserializeWithType, findBackReference, getEmptyAccessPattern, getKnownPropertyNames, getNullAccessPattern, getObjectIdReader, replaceDelegatee
-
Constructor Details
-
JavaObjectDeserializer
public JavaObjectDeserializer()
-
-
Method Details
-
resolve
public void resolve(tools.jackson.databind.DeserializationContext ctxt) - Overrides:
resolvein classtools.jackson.databind.ValueDeserializer<Object>
-
createContextual
public tools.jackson.databind.ValueDeserializer<?> createContextual(tools.jackson.databind.DeserializationContext ctxt, tools.jackson.databind.BeanProperty property) - Overrides:
createContextualin classtools.jackson.databind.ValueDeserializer<Object>
-
deserialize
public Object deserialize(tools.jackson.core.JsonParser parser, tools.jackson.databind.DeserializationContext context) - Specified by:
deserializein classtools.jackson.databind.ValueDeserializer<Object>
-
deserialize
public Object deserialize(tools.jackson.core.JsonParser parser, tools.jackson.databind.DeserializationContext context, Object intoValue) - Overrides:
deserializein classtools.jackson.databind.ValueDeserializer<Object>
-
deserializeWithType
public Object deserializeWithType(tools.jackson.core.JsonParser parser, tools.jackson.databind.DeserializationContext context, tools.jackson.databind.jsontype.TypeDeserializer typeDeserializer) - Overrides:
deserializeWithTypein classtools.jackson.databind.ValueDeserializer<Object>
-
logicalType
public tools.jackson.databind.type.LogicalType logicalType()- Overrides:
logicalTypein classtools.jackson.databind.ValueDeserializer<Object>
-
isCachable
public boolean isCachable()- Overrides:
isCachablein classtools.jackson.databind.ValueDeserializer<Object>
-
supportsUpdate
- Overrides:
supportsUpdatein classtools.jackson.databind.ValueDeserializer<Object>
-
handledType
- Overrides:
handledTypein classtools.jackson.databind.ValueDeserializer<Object>
-
getNullValue
- Specified by:
getNullValuein interfacetools.jackson.databind.deser.NullValueProvider- Overrides:
getNullValuein classtools.jackson.databind.ValueDeserializer<Object>
-
getAbsentValue
- Specified by:
getAbsentValuein interfacetools.jackson.databind.deser.NullValueProvider- Overrides:
getAbsentValuein classtools.jackson.databind.ValueDeserializer<Object>
-
getEmptyValue
- Overrides:
getEmptyValuein classtools.jackson.databind.ValueDeserializer<Object>
-
unwrappingDeserializer
public tools.jackson.databind.ValueDeserializer<Object> unwrappingDeserializer(tools.jackson.databind.DeserializationContext ctxt, tools.jackson.databind.util.NameTransformer transformer) - Overrides:
unwrappingDeserializerin classtools.jackson.databind.ValueDeserializer<Object>
-
getDelegatee
public tools.jackson.databind.ValueDeserializer<?> getDelegatee()- Overrides:
getDelegateein classtools.jackson.databind.ValueDeserializer<Object>
-