类 ProxyCreationContext

java.lang.Object
infra.aop.framework.autoproxy.ProxyCreationContext

public class ProxyCreationContext extends Object
Holder for the current proxy creation context, as exposed by auto-proxy creators such as AbstractAdvisorAutoProxyCreator.
从以下版本开始:
4.0 2022/3/9 11:44
作者:
Juergen Hoeller, Ramnivas Laddad, Harry Yang
  • 字段详细资料

    • currentProxiedBeanName

      private static final ThreadLocal<String> currentProxiedBeanName
      ThreadLocal holding the current proxied bean name during Advisor matching.
  • 构造器详细资料

    • ProxyCreationContext

      private ProxyCreationContext()
  • 方法详细资料

    • getCurrentProxiedBeanName

      @Nullable public static String getCurrentProxiedBeanName()
      Return the name of the currently proxied bean instance.
      返回:
      the name of the bean, or null if none available
    • setCurrentProxiedBeanName

      static void setCurrentProxiedBeanName(@Nullable String beanName)
      Set the name of the currently proxied bean instance.
      参数:
      beanName - the name of the bean, or null to reset it