public class Jackson2JsonObjectMapper extends AbstractJacksonJsonObjectMapper<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(java.lang.reflect.Type type) |
protected com.fasterxml.jackson.databind.JavaType |
extractJavaType(java.util.Map<java.lang.String,java.lang.Object> javaTypes) |
<T> T |
fromJson(com.fasterxml.jackson.core.JsonParser parser,
java.lang.reflect.Type valueType) |
protected <T> T |
fromJson(java.lang.Object json,
com.fasterxml.jackson.databind.JavaType type) |
void |
populateJavaTypes(java.util.Map<java.lang.String,java.lang.Object> map,
java.lang.Class<?> sourceClass) |
java.lang.String |
toJson(java.lang.Object value) |
void |
toJson(java.lang.Object value,
java.io.Writer writer) |
createJavaType, fromJson, fromJson, setBeanClassLoader
public Jackson2JsonObjectMapper()
public Jackson2JsonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public java.lang.String toJson(java.lang.Object value) throws java.lang.Exception
java.lang.Exception
public void toJson(java.lang.Object value, java.io.Writer writer) throws java.lang.Exception
java.lang.Exception
protected <T> T fromJson(java.lang.Object json, com.fasterxml.jackson.databind.JavaType type) throws java.lang.Exception
fromJson
in class AbstractJacksonJsonObjectMapper<com.fasterxml.jackson.core.JsonParser,com.fasterxml.jackson.databind.JavaType>
java.lang.Exception
public <T> T fromJson(com.fasterxml.jackson.core.JsonParser parser, java.lang.reflect.Type valueType) throws java.lang.Exception
java.lang.Exception
public void populateJavaTypes(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.Class<?> sourceClass)
protected com.fasterxml.jackson.databind.JavaType extractJavaType(java.util.Map<java.lang.String,java.lang.Object> javaTypes) throws java.lang.Exception
extractJavaType
in class AbstractJacksonJsonObjectMapper<com.fasterxml.jackson.core.JsonParser,com.fasterxml.jackson.databind.JavaType>
java.lang.Exception
protected com.fasterxml.jackson.databind.JavaType constructType(java.lang.reflect.Type type)
constructType
in class AbstractJacksonJsonObjectMapper<com.fasterxml.jackson.core.JsonParser,com.fasterxml.jackson.databind.JavaType>