Class JavaSerializationHint

java.lang.Object
org.springframework.aot.hint.JavaSerializationHint
All Implemented Interfaces:
ConditionalHint

@Deprecated(since="7.0.6", forRemoval=true) public final class JavaSerializationHint extends Object implements ConditionalHint
Deprecated, for removal: This API element is subject to removal in a future version.
in favor of TypeHint
A hint that describes the need for Java serialization at runtime.
Since:
6.0
Author:
Brian Clozel
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the type that should be reachable for this hint to apply, or null if this hint should always been applied.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the type that needs to be serialized using Java serialization at runtime.
    int
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface ConditionalHint

    conditionMatches
  • Method Details

    • getType

      public TypeReference getType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Return the type that needs to be serialized using Java serialization at runtime.
      Returns:
      a Serializable type
    • getReachableType

      public @Nullable TypeReference getReachableType()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ConditionalHint
      Return the type that should be reachable for this hint to apply, or null if this hint should always been applied.
      Specified by:
      getReachableType in interface ConditionalHint
      Returns:
      the reachable type, if any
    • equals

      public boolean equals(@Nullable Object other)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      hashCode in class Object