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