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