JacksonConverterRegistrar
@Deprecated public class ObjectNodeToConvertibleValuesConverter extends java.lang.Object implements TypeConverter<com.fasterxml.jackson.databind.node.ObjectNode,ConvertibleValues>
ObjectNode
to a ConvertibleValues
instance.Constructor and Description |
---|
ObjectNodeToConvertibleValuesConverter(ConversionService<?> conversionService)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<ConvertibleValues> |
convert(com.fasterxml.jackson.databind.node.ObjectNode object,
java.lang.Class<ConvertibleValues> targetType,
ConversionContext context)
Deprecated.
Converts from the given source object type to the target type.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convert, of
public ObjectNodeToConvertibleValuesConverter(ConversionService<?> conversionService)
conversionService
- To convert from JSON node to a ConvertibleValues
instancepublic java.util.Optional<ConvertibleValues> convert(com.fasterxml.jackson.databind.node.ObjectNode object, java.lang.Class<ConvertibleValues> targetType, ConversionContext context)
TypeConverter
Optional.empty()
in case the object is not convertible by catching any necessary exceptions and failing gracefully.convert
in interface TypeConverter<com.fasterxml.jackson.databind.node.ObjectNode,ConvertibleValues>
object
- The object typetargetType
- The target type being converted tocontext
- The ConversionContext