public abstract class AutoProxyUtils extends java.lang.Object
|Modifier and Type||Field and Description|
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 and Description|
|Modifier and Type||Method and Description|
Determine whether the given bean should be proxied with its target class rather than its interfaces.
public static final java.lang.String PRESERVE_TARGET_CLASS_ATTRIBUTE
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).
public static boolean shouldProxyTargetClass(ConfigurableListableBeanFactory beanFactory, java.lang.String beanName)
"preserveTargetClass" attributeof the corresponding bean definition.
beanFactory- the containing ConfigurableListableBeanFactory
beanName- the name of the bean