Class SerializationHints
java.lang.Object
org.springframework.aot.hint.SerializationHints
Deprecated, for removal: This API element is subject to removal in a future version.
Gather the need for Java serialization at runtime.
- Since:
- 6.0
- Author:
- Stephane Nicoll
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Return thejava serialization hintsfor types that need to be serialized using Java serialization at runtime.registerType(Class<? extends Serializable> type) Deprecated, for removal: This API element is subject to removal in a future version.Register that the specified type need to be serialized using java serialization.registerType(Class<? extends Serializable> type, @Nullable Consumer<JavaSerializationHint.Builder> serializationHint) Deprecated, for removal: This API element is subject to removal in a future version.Register that the specified type need to be serialized using java serialization.registerType(TypeReference type) Deprecated, for removal: This API element is subject to removal in a future version.Register that the type defined by the specifiedTypeReferenceneed to be serialized using java serialization.registerType(TypeReference type, @Nullable Consumer<JavaSerializationHint.Builder> serializationHint) Deprecated, for removal: This API element is subject to removal in a future version.Register that the type defined by the specifiedTypeReferenceneed to be serialized using java serialization.
-
Constructor Details
-
SerializationHints
public SerializationHints()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
javaSerializationHints
Deprecated, for removal: This API element is subject to removal in a future version.Return thejava serialization hintsfor types that need to be serialized using Java serialization at runtime.- Returns:
- a stream of
java serialization hints
-
registerType
public SerializationHints registerType(TypeReference type, @Nullable Consumer<JavaSerializationHint.Builder> serializationHint) Deprecated, for removal: This API element is subject to removal in a future version.Register that the type defined by the specifiedTypeReferenceneed to be serialized using java serialization.- Parameters:
type- the type to registerserializationHint- a builder to further customize the serialization- Returns:
this, to facilitate method chaining
-
registerType
Deprecated, for removal: This API element is subject to removal in a future version.Register that the type defined by the specifiedTypeReferenceneed to be serialized using java serialization.- Parameters:
type- the type to register- Returns:
this, to facilitate method chaining
-
registerType
public SerializationHints registerType(Class<? extends Serializable> type, @Nullable Consumer<JavaSerializationHint.Builder> serializationHint) Deprecated, for removal: This API element is subject to removal in a future version.Register that the specified type need to be serialized using java serialization.- Parameters:
type- the type to registerserializationHint- a builder to further customize the serialization- Returns:
this, to facilitate method chaining
-
registerType
Deprecated, for removal: This API element is subject to removal in a future version.Register that the specified type need to be serialized using java serialization.- Parameters:
type- the type to register- Returns:
this, to facilitate method chaining
-
ReflectionHints