Class JacksonSerdeFactory
java.lang.Object
dev.restate.serde.jackson.JacksonSerdeFactory
- All Implemented Interfaces:
SerdeFactory
This class implements
SerdeFactory using Jackson's ObjectMapper.
If you want to customize the ObjectMapper used in your service, it is recommended to
subclass this class using the constructor JacksonSerdeFactory(ObjectMapper), and then
register it using the CustomSerdeFactory annotation.
-
Field Summary
FieldsFields inherited from interface SerdeFactory
NOOP -
Constructor Summary
ConstructorsConstructorDescriptionJacksonSerdeFactory(com.fasterxml.jackson.databind.ObjectMapper mapper) JacksonSerdeFactory(com.fasterxml.jackson.databind.ObjectMapper mapper, @Nullable com.github.victools.jsonschema.generator.SchemaGenerator schemaGenerator) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SerdeFactory
create
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
JacksonSerdeFactory
public JacksonSerdeFactory() -
JacksonSerdeFactory
public JacksonSerdeFactory(com.fasterxml.jackson.databind.ObjectMapper mapper) -
JacksonSerdeFactory
public JacksonSerdeFactory(com.fasterxml.jackson.databind.ObjectMapper mapper, @Nullable com.github.victools.jsonschema.generator.SchemaGenerator schemaGenerator)
-
-
Method Details
-
create
- Specified by:
createin interfaceSerdeFactory
-
create
- Specified by:
createin interfaceSerdeFactory
-