Package io.dapr.durabletask
Class JacksonDataConverter
java.lang.Object
io.dapr.durabletask.JacksonDataConverter
- All Implemented Interfaces:
DataConverter
An implementation of
DataConverter that uses Jackson APIs for data serialization.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.dapr.durabletask.DataConverter
DataConverter.DataConverterException -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JacksonDataConverter
public JacksonDataConverter()
-
-
Method Details
-
serialize
Description copied from interface:DataConverterSerializes the input into a text representation.- Specified by:
serializein interfaceDataConverter- Parameters:
value- the value to be serialized- Returns:
- a serialized text representation of the value or
nullif the value isnull
-
deserialize
Description copied from interface:DataConverterDeserializes the given text data into an object of the specified type.- Specified by:
deserializein interfaceDataConverter- Type Parameters:
T- the generic parameter type representing the target class to deserialize the input into- Parameters:
jsonText- the text data to deserialize into an objecttargetType- the target class to deserialize the input into- Returns:
- a deserialized object of type
T
-