public abstract class AbstractJacksonJsonObjectMapper<P,J> extends java.lang.Object implements JsonObjectMapper<P>, org.springframework.beans.factory.BeanClassLoaderAware
JsonObjectMapper
implementations.Modifier and Type | Field and Description |
---|---|
protected static java.util.Collection<java.lang.Class<?>> |
supportedJsonTypes |
Constructor and Description |
---|
AbstractJacksonJsonObjectMapper() |
Modifier and Type | Method and Description |
---|---|
protected abstract J |
constructType(java.lang.reflect.Type type) |
protected J |
createJavaType(java.util.Map<java.lang.String,java.lang.Object> javaTypes,
java.lang.String javaTypeKey) |
protected abstract J |
extractJavaType(java.util.Map<java.lang.String,java.lang.Object> javaTypes) |
<T> T |
fromJson(java.lang.Object json,
java.lang.Class<T> valueType) |
protected abstract <T> T |
fromJson(java.lang.Object json,
J type) |
<T> T |
fromJson(java.lang.Object json,
java.util.Map<java.lang.String,java.lang.Object> javaTypes) |
void |
setBeanClassLoader(java.lang.ClassLoader classLoader) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromJson, populateJavaTypes, toJson, toJson
protected static final java.util.Collection<java.lang.Class<?>> supportedJsonTypes
public void setBeanClassLoader(java.lang.ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
public <T> T fromJson(java.lang.Object json, java.lang.Class<T> valueType) throws java.lang.Exception
fromJson
in interface JsonObjectMapper<P>
java.lang.Exception
public <T> T fromJson(java.lang.Object json, java.util.Map<java.lang.String,java.lang.Object> javaTypes) throws java.lang.Exception
fromJson
in interface JsonObjectMapper<P>
java.lang.Exception
protected J createJavaType(java.util.Map<java.lang.String,java.lang.Object> javaTypes, java.lang.String javaTypeKey) throws java.lang.Exception
java.lang.Exception
protected abstract <T> T fromJson(java.lang.Object json, J type) throws java.lang.Exception
java.lang.Exception
protected abstract J extractJavaType(java.util.Map<java.lang.String,java.lang.Object> javaTypes) throws java.lang.Exception
java.lang.Exception
protected abstract J constructType(java.lang.reflect.Type type)