public class ObjectMapperWrapper extends Object
ObjectMapper
so that you can supply your own ObjectMapper
reference.Modifier and Type | Field and Description |
---|---|
static ObjectMapperWrapper |
INSTANCE |
Constructor and Description |
---|
ObjectMapperWrapper() |
ObjectMapperWrapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
<T> T |
clone(T value) |
<T> T |
fromString(String string,
Class<T> clazz) |
<T> T |
fromString(String string,
Type type) |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
void |
setJsonSerializer(JsonSerializer jsonSerializer) |
com.fasterxml.jackson.databind.JsonNode |
toJsonNode(String value) |
String |
toString(Object value) |
public static final ObjectMapperWrapper INSTANCE
public ObjectMapperWrapper()
public ObjectMapperWrapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void setJsonSerializer(JsonSerializer jsonSerializer)
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
public com.fasterxml.jackson.databind.JsonNode toJsonNode(String value)
public <T> T clone(T value)
Copyright © 2020. All rights reserved.