public class SerializeConfig extends Object
Modifier and Type | Field and Description |
---|---|
static SerializeConfig |
globalInstance |
PropertyNamingStrategy |
propertyNamingStrategy |
Constructor and Description |
---|
SerializeConfig() |
SerializeConfig(boolean fieldBase) |
SerializeConfig(int tableSize) |
SerializeConfig(int tableSize,
boolean fieldBase) |
public static final SerializeConfig globalInstance
public PropertyNamingStrategy propertyNamingStrategy
public SerializeConfig()
public SerializeConfig(boolean fieldBase)
public SerializeConfig(int tableSize)
public SerializeConfig(int tableSize, boolean fieldBase)
public String getTypeKey()
public void setTypeKey(String typeKey)
public final ObjectSerializer createJavaBeanSerializer(Class<?> clazz)
public ObjectSerializer createJavaBeanSerializer(SerializeBeanInfo beanInfo)
public boolean isAsmEnable()
public void setAsmEnable(boolean asmEnable)
public static SerializeConfig getGlobalInstance()
public void addFilter(Class<?> clazz, SerializeFilter filter)
public void config(Class<?> clazz, SerializerFeature feature, boolean value)
public ObjectSerializer getObjectWriter(Class<?> clazz)
public ObjectSerializer getObjectWriter(Class<?> clazz, boolean create)
public final ObjectSerializer get(Type type)
public boolean put(Type type, ObjectSerializer value)
public void configEnumAsJavaBean(Class<? extends Enum>... enumClasses)
enumClasses
- public void setPropertyNamingStrategy(PropertyNamingStrategy propertyNamingStrategy)
propertyNamingStrategy
- public void clearSerializers()
public void register(Module module)
Copyright © 2012–2022 Alibaba Group. All rights reserved.