Top Description Fields Constructors Methods
org.springframework.aop.framework.autoproxy

public final Class ProxyCreationContext

extends Object
Class Inheritance
Imports
org.springframework.core.NamedThreadLocal, org.springframework.lang.Nullable

Holder for the current proxy creation context, as exposed by auto-proxy creators such as AbstractAdvisorAutoProxyCreator.
Authors
Juergen Hoeller, Ramnivas Laddad
Since
2.5

Field Summary

Modifier and TypeField and Description
private static final ThreadLocal<String>
currentProxiedBeanName

ThreadLocal holding the current proxied bean name during Advisor matching.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the name of the bean, or null if none available
getCurrentProxiedBeanName
()

Return the name of the currently proxied bean instance.

pack-priv static void
setCurrentProxiedBeanName(String
the name of the bean, or null to reset it
beanName
)

Set the name of the currently proxied bean instance.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentProxiedBeanNameback to summary
private static final ThreadLocal<String> currentProxiedBeanName

ThreadLocal holding the current proxied bean name during Advisor matching.

Constructor Detail

ProxyCreationContextback to summary
private ProxyCreationContext()

Method Detail

getCurrentProxiedBeanNameback to summary
public static String getCurrentProxiedBeanName()

Return the name of the currently proxied bean instance.

Returns:String

the name of the bean, or null if none available

Annotations
@Nullable
setCurrentProxiedBeanNameback to summary
pack-priv static void setCurrentProxiedBeanName(String beanName)

Set the name of the currently proxied bean instance.

Parameters
beanName:String

the name of the bean, or null to reset it