org.springframework.aop.framework.autoproxy
Class ProxyCreationContext
java.lang.Object
org.springframework.aop.framework.autoproxy.ProxyCreationContext
public class ProxyCreationContext
- extends java.lang.Object
Holder for the current proxy creation context, as exposed by auto-proxy creators
such as AbstractAdvisorAutoProxyCreator
.
- Since:
- 2.5
- Author:
- Juergen Hoeller, Ramnivas Laddad
Field Summary |
private static java.lang.ThreadLocal<java.lang.String> |
currentProxiedBeanName
ThreadLocal holding the current proxied bean name during Advisor matching |
Method Summary |
static java.lang.String |
getCurrentProxiedBeanName()
Return the name of the currently proxied bean instance. |
(package private) static void |
setCurrentProxiedBeanName(java.lang.String beanName)
Set the name of the currently proxied bean instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentProxiedBeanName
private static final java.lang.ThreadLocal<java.lang.String> currentProxiedBeanName
- ThreadLocal holding the current proxied bean name during Advisor matching
ProxyCreationContext
public ProxyCreationContext()
getCurrentProxiedBeanName
public static java.lang.String getCurrentProxiedBeanName()
- Return the name of the currently proxied bean instance.
- Returns:
- the name of the bean, or
null
if none available
setCurrentProxiedBeanName
static void setCurrentProxiedBeanName(java.lang.String beanName)
- Set the name of the currently proxied bean instance.
- Parameters:
beanName
- the name of the bean, or null
to reset it