public class JacksonJsonObjectMapper extends AbstractJacksonJsonObjectMapper<org.codehaus.jackson.JsonParser,org.codehaus.jackson.type.JavaType>
toJson
and fromJson
to the ObjectMappersupportedJsonTypes
Constructor and Description |
---|
JacksonJsonObjectMapper() |
JacksonJsonObjectMapper(org.codehaus.jackson.map.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
protected org.codehaus.jackson.type.JavaType |
constructType(java.lang.reflect.Type type) |
protected org.codehaus.jackson.type.JavaType |
extractJavaType(java.util.Map<java.lang.String,java.lang.Object> javaTypes) |
<T> T |
fromJson(org.codehaus.jackson.JsonParser parser,
java.lang.reflect.Type valueType) |
protected <T> T |
fromJson(java.lang.Object json,
org.codehaus.jackson.type.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 JacksonJsonObjectMapper()
public JacksonJsonObjectMapper(org.codehaus.jackson.map.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
public <T> T fromJson(org.codehaus.jackson.JsonParser parser, java.lang.reflect.Type valueType) throws java.lang.Exception
java.lang.Exception
protected <T> T fromJson(java.lang.Object json, org.codehaus.jackson.type.JavaType type) throws java.lang.Exception
fromJson
in class AbstractJacksonJsonObjectMapper<org.codehaus.jackson.JsonParser,org.codehaus.jackson.type.JavaType>
java.lang.Exception
public void populateJavaTypes(java.util.Map<java.lang.String,java.lang.Object> map, java.lang.Class<?> sourceClass)
protected org.codehaus.jackson.type.JavaType constructType(java.lang.reflect.Type type)
constructType
in class AbstractJacksonJsonObjectMapper<org.codehaus.jackson.JsonParser,org.codehaus.jackson.type.JavaType>
protected org.codehaus.jackson.type.JavaType extractJavaType(java.util.Map<java.lang.String,java.lang.Object> javaTypes) throws java.lang.Exception
extractJavaType
in class AbstractJacksonJsonObjectMapper<org.codehaus.jackson.JsonParser,org.codehaus.jackson.type.JavaType>
java.lang.Exception