AbstractAutoProxyCreator which implements BeanFactoryAware,
adds exposure of the original target class for each proxied bean
(AutoProxyUtils#ORIGINAL_TARGET_CLASS_ATTRIBUTE),
and participates in an externally enforced target-class mode for any given bean
(AutoProxyUtils#PRESERVE_TARGET_CLASS_ATTRIBUTE).
This post-processor is therefore aligned with AbstractAutoProxyCreator.
AutoProxyUtils#shouldProxyTargetClass, AutoProxyUtils#determineTargetClass
| Modifier and Type | Field and Description |
|---|---|
| private ConfigurableListableBeanFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | isEligible(Object
the bean instance bean, String the name of the bean beanName)Overrides org. Advisor.
|
| protected ProxyFactory | prepareProxyFactory(Object
the bean instance to create a proxy for bean, String the corresponding bean name beanName)Overrides org. ProxyFactory for the given bean.
|
| public void | setBeanFactory(BeanFactory
owning BeanFactory (never beanFactory)null).
The bean can immediately call methods on the factory.Implements org. |
| beanFactory | back to summary |
|---|---|
| private ConfigurableListableBeanFactory beanFactory
| |
| AbstractBeanFactoryAwareAdvisingPostProcessor | back to summary |
|---|---|
| public AbstractBeanFactoryAwareAdvisingPostProcessor() | |
| isEligible | back to summary |
|---|---|
| protected boolean isEligible(Object bean, String beanName) Overrides org. Doc from org. Check whether the given bean is eligible for advising with this
post-processor's Delegates to Note Only called for regular bean instances but not for existing
proxy instances which implement | |
| prepareProxyFactory | back to summary |
|---|---|
| protected ProxyFactory prepareProxyFactory(Object bean, String beanName) Overrides org. Doc from org. Prepare a Subclasses may customize the handling of the target instance and in
particular the exposure of the target class. The default introspection
of interfaces for non-target-class proxies and the configured advisor
will be applied afterwards;
| |
| setBeanFactory | back to summary |
|---|---|
| public void setBeanFactory(BeanFactory beanFactory) Implements org. Doc from org. Callback that supplies the owning factory to a bean instance. Invoked after the population of normal bean properties
but before an initialization callback such as
| |