|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.framework.autoproxy.AutoProxyUtils
public abstract class AutoProxyUtils
Utilities for auto-proxy aware components. Mainly for internal use within the framework.
AbstractAutoProxyCreator
Field Summary | |
---|---|
static java.lang.String |
PRESERVE_TARGET_CLASS_ATTRIBUTE
Bean definition attribute that may indicate whether a given bean is supposed to be proxied with its target class (in case of it getting proxied in the first place). |
Constructor Summary | |
---|---|
AutoProxyUtils()
|
Method Summary | |
---|---|
static boolean |
shouldProxyTargetClass(ConfigurableListableBeanFactory beanFactory,
java.lang.String beanName)
Determine whether the given bean should be proxied with its target class rather than its interfaces. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PRESERVE_TARGET_CLASS_ATTRIBUTE
Boolean.TRUE
or Boolean.FALSE
.
Proxy factories can set this attribute if they built a target class proxy for a specific bean, and want to enforce that that bean can always be cast to its target class (even if AOP advices get applied through auto-proxying).
Constructor Detail |
---|
public AutoProxyUtils()
Method Detail |
---|
public static boolean shouldProxyTargetClass(ConfigurableListableBeanFactory beanFactory, java.lang.String beanName)
"preserveTargetClass" attribute
of the corresponding bean definition.
beanFactory
- the containing ConfigurableListableBeanFactorybeanName
- the name of the bean
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |