类 ProxyHints

java.lang.Object
cn.taketoday.aot.hint.ProxyHints

public class ProxyHints extends Object
Gather the need for using proxies at runtime.
从以下版本开始:
4.0
作者:
Stephane Nicoll
  • 字段详细资料

  • 构造器详细资料

    • ProxyHints

      public ProxyHints()
  • 方法详细资料

    • jdkProxyHints

      public Stream<JdkProxyHint> jdkProxyHints()
      Return the interface-based proxies that are required.
      返回:
      a stream of JdkProxyHint
    • registerJdkProxy

      public ProxyHints registerJdkProxy(Consumer<JdkProxyHint.Builder> jdkProxyHint)
      Register a JdkProxyHint.
      参数:
      jdkProxyHint - the consumer of the hint builder
      返回:
      this, to facilitate method chaining
    • registerJdkProxy

      public ProxyHints registerJdkProxy(TypeReference... proxiedInterfaces)
      Register that a JDK proxy implementing the interfaces defined by the specified type references is required.
      参数:
      proxiedInterfaces - the type references for the interfaces the proxy should implement
      返回:
      this, to facilitate method chaining
    • registerJdkProxy

      public ProxyHints registerJdkProxy(Class<?>... proxiedInterfaces)
      Register that a JDK proxy implementing the specified interfaces is required.

      When registering a JDK proxy for Infra AOP, consider using AopProxyUtils.completeJdkProxyInterfaces() for convenience.

      参数:
      proxiedInterfaces - the interfaces the proxy should implement
      返回:
      this, to facilitate method chaining