AbstractAutoProxyCreator
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ORIGINAL_TARGET_CLASS_ATTRIBUTE
Bean definition attribute that indicates the original target class of an auto-proxied bean, e.g. to be used for the introspection of annotations on the target class behind an interface-based proxy. |
| public static final 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). |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Class | Returns: the original target class as stored in the bean definition, if anythe containing ConfigurableListableBeanFactory beanFactory, String the name of the bean beanName)Determine the original target class for the specified bean, if possible,
otherwise falling back to a regular |
| pack-priv static void | exposeTargetClass(ConfigurableListableBeanFactory
the containing ConfigurableListableBeanFactory beanFactory, String the name of the bean beanName, Class<?> the corresponding target class targetClass)Expose the given target class for the specified bean, if possible. |
| pack-priv static boolean | isOriginalInstance(String
the name of the bean beanName, Class<?> the corresponding bean class beanClass)Determine whether the given bean name indicates an "original instance"
according to |
| public static boolean | Returns: whether the given bean should be proxied with its target classthe containing ConfigurableListableBeanFactory beanFactory, String the name of the bean beanName)Determine whether the given bean should be proxied with its target class rather than its interfaces. |
| ORIGINAL_TARGET_CLASS_ATTRIBUTE | back to summary |
|---|---|
| public static final String ORIGINAL_TARGET_CLASS_ATTRIBUTE Bean definition attribute that indicates the original target class of an auto-proxied bean, e.g. to be used for the introspection of annotations on the target class behind an interface-based proxy.
| |
| PRESERVE_TARGET_CLASS_ATTRIBUTE | back to summary |
|---|---|
| public static final 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). The value is Proxy factories can set this attribute if they built a target class proxy for a specific bean, and want to enforce that bean can always be cast to its target class (even if AOP advices get applied through auto-proxying).
| |
| AutoProxyUtils | back to summary |
|---|---|
| public AutoProxyUtils() | |
| determineTargetClass | back to summary |
|---|---|
| public static Class Determine the original target class for the specified bean, if possible,
otherwise falling back to a regular
| |
| exposeTargetClass | back to summary |
|---|---|
| pack-priv static void exposeTargetClass(ConfigurableListableBeanFactory beanFactory, String beanName, Class<?> targetClass) Expose the given target class for the specified bean, if possible.
| |
| isOriginalInstance | back to summary |
|---|---|
| pack-priv static boolean isOriginalInstance(String beanName, Class<?> beanClass) Determine whether the given bean name indicates an "original instance"
according to
| |
| shouldProxyTargetClass | back to summary |
|---|---|
| public static boolean shouldProxyTargetClass(ConfigurableListableBeanFactory beanFactory, String beanName) Determine whether the given bean should be proxied with its target
class rather than its interfaces. Checks the
| |