public class Jackson2JsonObjectMapper extends AbstractJacksonJsonObjectMapper<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.core.JsonParser,com.fasterxml.jackson.databind.JavaType>
toJson
and fromJson
to the ObjectMappersupportedJsonTypes
Constructor and Description |
---|
Jackson2JsonObjectMapper() |
Jackson2JsonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
protected com.fasterxml.jackson.databind.JavaType |
constructType(Type type) |
protected com.fasterxml.jackson.databind.JavaType |
extractJavaType(Map<String,Object> javaTypes) |
<T> T |
fromJson(com.fasterxml.jackson.core.JsonParser parser,
Type valueType) |
protected <T> T |
fromJson(Object json,
com.fasterxml.jackson.databind.JavaType type) |
void |
populateJavaTypes(Map<String,Object> map,
Class<?> sourceClass) |
String |
toJson(Object value) |
void |
toJson(Object value,
Writer writer) |
com.fasterxml.jackson.databind.JsonNode |
toJsonNode(Object value) |
createJavaType, fromJson, fromJson, setBeanClassLoader
public Jackson2JsonObjectMapper()
public Jackson2JsonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public com.fasterxml.jackson.databind.JsonNode toJsonNode(Object value) throws Exception
Exception
protected <T> T fromJson(Object json, com.fasterxml.jackson.databind.JavaType type) throws Exception
fromJson
in class AbstractJacksonJsonObjectMapper<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.core.JsonParser,com.fasterxml.jackson.databind.JavaType>
Exception
public <T> T fromJson(com.fasterxml.jackson.core.JsonParser parser, Type valueType) throws Exception
Exception
protected com.fasterxml.jackson.databind.JavaType extractJavaType(Map<String,Object> javaTypes) throws Exception
extractJavaType
in class AbstractJacksonJsonObjectMapper<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.core.JsonParser,com.fasterxml.jackson.databind.JavaType>
Exception
protected com.fasterxml.jackson.databind.JavaType constructType(Type type)
constructType
in class AbstractJacksonJsonObjectMapper<com.fasterxml.jackson.databind.JsonNode,com.fasterxml.jackson.core.JsonParser,com.fasterxml.jackson.databind.JavaType>