Interface SerializationMapper
- All Known Implementing Classes:
JacksonSerializationMapper
public interface SerializationMapper
序列化转换器,在数据库侧使用字符串存储
- Author:
- Maning
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanDeserialize(String str, Type type) 是否支持反序列化default booleancanSerialize(Object obj) 是否支持序列化<T> Tdeserialize(String str, Type type) 反序列化为对象将对象序列化为字符串
-
Method Details
-
canDeserialize
-
canSerialize
-
deserialize
反序列化为对象- Type Parameters:
T- 类型- Parameters:
str- 字符串,不为nulltype- 类型,可能携带泛型Class|ParameterizedType- Returns:
- 反序列化后的类实例,允许返回null
-
serialize
-