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