public abstract class JacksonRenderFactoryBase extends java.lang.Object implements JsonRenderFactory
限定符和类型 | 字段和说明 |
---|---|
protected JacksonStringSerializer |
serializer |
构造器和说明 |
---|
JacksonRenderFactoryBase() |
限定符和类型 | 方法和说明 |
---|---|
<T> void |
addConvertor(java.lang.Class<T> clz,
Converter<T,java.lang.Object> converter)
添加转换器(编码器的简化版)
|
<T> void |
addEncoder(java.lang.Class<T> clz,
com.fasterxml.jackson.databind.JsonSerializer<T> encoder)
添加编码器
|
com.fasterxml.jackson.databind.ObjectMapper |
config()
序列化配置
|
JacksonStringSerializer |
getSerializer()
获取序列化器
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create, mappings
protected final JacksonStringSerializer serializer
public JacksonStringSerializer getSerializer()
public com.fasterxml.jackson.databind.ObjectMapper config()
public <T> void addEncoder(java.lang.Class<T> clz, com.fasterxml.jackson.databind.JsonSerializer<T> encoder)
clz
- 类型encoder
- 编码器public <T> void addConvertor(java.lang.Class<T> clz, Converter<T,java.lang.Object> converter)
addConvertor
在接口中 JsonRenderFactory
clz
- 类型converter
- 转换器