Package org.springframework.aot.hint
Class JavaSerializationHints
java.lang.Object
org.springframework.aot.hint.JavaSerializationHints
Gather the need for Java serialization at runtime.
- Since:
- 6.0
- Author:
- Stephane Nicoll
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionregisterType
(Class<? extends Serializable> type) Register that the specified type need to be serialized using java serialization.registerType
(TypeReference type) Register that the type defined by the specifiedTypeReference
need to be serialized using java serialization.types()
Return thetypes
that need to be serialized using Java serialization at runtime.
-
Constructor Details
-
JavaSerializationHints
public JavaSerializationHints()
-
-
Method Details
-
types
Return thetypes
that need to be serialized using Java serialization at runtime.- Returns:
- a stream of
Serializable
types
-
registerType
Register that the type defined by the specifiedTypeReference
need to be serialized using java serialization.- Parameters:
type
- the type to register- Returns:
this
, to facilitate method chaining
-
registerType
Register that the specified type need to be serialized using java serialization.- Parameters:
type
- the type to register- Returns:
this
, to facilitate method chaining
-