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