Class JavaSerializationHint.Builder

java.lang.Object
org.springframework.aot.hint.JavaSerializationHint.Builder
Enclosing class:
JavaSerializationHint

public static class JavaSerializationHint.Builder extends Object
  • Method Details

    • onReachableType

      public JavaSerializationHint.Builder onReachableType(TypeReference reachableType)
      Make this hint conditional on the fact that the specified type can be resolved.
      Parameters:
      reachableType - the type that should be reachable for this hint to apply
      Returns:
      this, to facilitate method chaining