Class ProxyHintsPredicates

java.lang.Object
org.springframework.aot.hint.predicate.ProxyHintsPredicates

public class ProxyHintsPredicates extends Object
Generator of ProxyHints predicates, testing whether the given hints match the expected behavior for proxies.
Since:
6.0
Author:
Brian Clozel
  • Method Details

    • forInterfaces

      public Predicate<RuntimeHints> forInterfaces(Class<?>... interfaces)
      Return a predicate that checks whether a JdkProxyHint is registered for the given interfaces.

      Note that the order in which interfaces are given matters.

      Parameters:
      interfaces - the proxied interfaces
      Returns:
      the RuntimeHints predicate
      See Also:
    • forInterfaces

      public Predicate<RuntimeHints> forInterfaces(TypeReference... interfaces)
      Return a predicate that checks whether a JdkProxyHint is registered for the given interfaces.

      Note that the order in which interfaces are given matters.

      Parameters:
      interfaces - the proxied interfaces as type references
      Returns:
      the RuntimeHints predicate
      See Also: