Class ClassProxyHint

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

public final class ClassProxyHint extends Object
A hint that describes the need for a proxy against a concrete class.
Since:
6.0
Author:
Stephane Nicoll
  • Method Details

    • of

      public static ClassProxyHint.Builder of(TypeReference targetClass)
      Initialize a builder with the target class to use.
      Parameters:
      targetClass - the target class of the proxy
      Returns:
      a builder for the hint
    • of

      public static ClassProxyHint.Builder of(Class<?> targetClass)
      Initialize a builder with the target class to use.
      Parameters:
      targetClass - the target class of the proxy
      Returns:
      a builder for the hint
    • getTargetClass

      public TypeReference getTargetClass()
      Return the target class of the proxy.
      Returns:
      the target class
    • 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