Class JdkProxyHint

java.lang.Object
org.springframework.aot.hint.JdkProxyHint

public final class JdkProxyHint extends Object
A hint that describes the need of a JDK Proxy, that is an interfaces-based proxy.
Since:
6.0
Author:
Stephane Nicoll
  • Method Details

    • of

      public static JdkProxyHint.Builder of(TypeReference... proxiedInterfaces)
      Initialize a builder with the proxied interfaces to use.
      Parameters:
      proxiedInterfaces - the interfaces the proxy should implement
      Returns:
      a builder for the hint
    • of

      public static JdkProxyHint.Builder of(Class<?>... proxiedInterfaces)
      Initialize a builder with the proxied interfaces to use.
      Parameters:
      proxiedInterfaces - the interfaces the proxy should implement
      Returns:
      a builder for the hint
    • getProxiedInterfaces

      public List<TypeReference> getProxiedInterfaces()
      Return the interfaces to be proxied.
      Returns:
      the interfaces that the proxy should implement
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object