Package com.arangodb.serde.jackson
Interface JacksonSerde
-
- All Superinterfaces:
ArangoSerde
public interface JacksonSerde extends ArangoSerde
User data serde based on Jackson Databind. Not shaded in arangodb-java-driver-shaded.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description JacksonSerde
configure(Consumer<com.fasterxml.jackson.databind.ObjectMapper> configureFunction)
Allows 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 Detail
-
of
static JacksonSerde of(ContentType contentType)
Creates a new JacksonSerde with default settings for the specified data type.- Parameters:
contentType
- serialization target data type- Returns:
- the created JacksonSerde
-
create
static JacksonSerde create(com.fasterxml.jackson.databind.ObjectMapper mapper)
Creates a new JacksonSerde using the provided ObjectMapper.- Parameters:
mapper
- Jackson ObjectMapper to use- Returns:
- the created JacksonSerde
-
getRequestContext
static RequestContext getRequestContext(com.fasterxml.jackson.databind.DeserializationContext ctx)
Extracts theRequestContext
from the currentDeserializationContext
.- Parameters:
ctx
- current JacksonDeserializationContext
- Returns:
- current
RequestContext
-
configure
JacksonSerde configure(Consumer<com.fasterxml.jackson.databind.ObjectMapper> configureFunction)
Allows configuring the underlying Jackson ObjectMapper- Parameters:
configureFunction
- function to configure the Jackson ObjectMapper
-
-