类 SerializationHints
java.lang.Object
cn.taketoday.aot.hint.SerializationHints
Gather the need for Java serialization at runtime.
- 从以下版本开始:
- 4.0
- 作者:
- Stephane Nicoll, Harry Yang
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Return thejava serialization hintsfor types that need to be serialized using Java serialization at runtime.registerType(TypeReference type) Register that the type defined by the specifiedTypeReferenceneed to be serialized using java serialization.registerType(TypeReference type, Consumer<JavaSerializationHint.Builder> serializationHint) Register that the type defined by the specifiedTypeReferenceneed to be serialized using java serialization.registerType(Class<? extends Serializable> type) Register that the specified type need to be serialized using java serialization.registerType(Class<? extends Serializable> type, Consumer<JavaSerializationHint.Builder> serializationHint) Register that the specified type need to be serialized using java serialization.
-
字段详细资料
-
javaSerializationHints
-
-
构造器详细资料
-
SerializationHints
public SerializationHints()
-
-
方法详细资料
-
javaSerializationHints
Return thejava serialization hintsfor types that need to be serialized using Java serialization at runtime.- 返回:
- a stream of
java serialization hints
-
registerType
public SerializationHints registerType(TypeReference type, @Nullable Consumer<JavaSerializationHint.Builder> serializationHint) Register that the type defined by the specifiedTypeReferenceneed to be serialized using java serialization.- 参数:
type- the type to registerserializationHint- a builder to further customize the serialization- 返回:
this, to facilitate method chaining
-
registerType
Register that the type defined by the specifiedTypeReferenceneed to be serialized using java serialization.- 参数:
type- the type to register- 返回:
this, to facilitate method chaining
-
registerType
public SerializationHints registerType(Class<? extends Serializable> type, @Nullable Consumer<JavaSerializationHint.Builder> serializationHint) Register that the specified type need to be serialized using java serialization.- 参数:
type- the type to registerserializationHint- a builder to further customize the serialization- 返回:
this, to facilitate method chaining
-
registerType
Register that the specified type need to be serialized using java serialization.- 参数:
type- the type to register- 返回:
this, to facilitate method chaining
-