Class JdkProxyHint.Builder

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

public static class JdkProxyHint.Builder extends Object
Builder for JdkProxyHint.
  • Method Details

    • proxiedInterfaces

      public JdkProxyHint.Builder proxiedInterfaces(TypeReference... proxiedInterfaces)
      Add the specified interfaces that the proxy should implement.
      Parameters:
      proxiedInterfaces - the interfaces the proxy should implement
      Returns:
      this, to facilitate method chaining
    • proxiedInterfaces

      public JdkProxyHint.Builder proxiedInterfaces(Class<?>... proxiedInterfaces)
      Add the specified interfaces that the proxy should implement.
      Parameters:
      proxiedInterfaces - the interfaces the proxy should implement
      Returns:
      this, to facilitate method chaining
    • onReachableType

      public JdkProxyHint.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