Package com.arangodb.serde.jackson
Interface JacksonSerde
- All Superinterfaces:
ArangoSerde
- All Known Implementing Classes:
JacksonSerdeImpl
User data serde based on Jackson Databind. Not shaded in arangodb-java-driver-shaded.
-
Method Summary
Modifier and TypeMethodDescriptionAllows configuring the underlying Jackson ObjectMapperstatic JacksonSerde
create
(com.fasterxml.jackson.databind.ObjectMapper mapper) Creates a new JacksonSerde using the provided ObjectMapper.static RequestContext
getRequestContext
(com.fasterxml.jackson.databind.DeserializationContext ctx) Extracts theRequestContext
from the currentDeserializationContext
.static JacksonSerde
of
(ContentType contentType) Creates a new JacksonSerde with default settings for the specified data type.Methods inherited from interface com.arangodb.serde.ArangoSerde
deserialize, deserialize, serialize
-
Method Details
-
of
Creates a new JacksonSerde with default settings for the specified data type.- Parameters:
contentType
- serialization target data type- Returns:
- the created JacksonSerde
-
create
Creates a new JacksonSerde using the provided ObjectMapper.- Parameters:
mapper
- Jackson ObjectMapper to use- Returns:
- the created JacksonSerde
-
getRequestContext
Extracts theRequestContext
from the currentDeserializationContext
.- Parameters:
ctx
- current JacksonDeserializationContext
- Returns:
- current
RequestContext
-
configure
Allows configuring the underlying Jackson ObjectMapper- Parameters:
configureFunction
- function to configure the Jackson ObjectMapper
-