public abstract class AbstractBeanFactoryAwareAdvisingPostProcessor extends AbstractAdvisingBeanPostProcessor implements org.springframework.beans.factory.BeanFactoryAware
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(org.springframework.beans.factory.config.ConfigurableListableBeanFactory, java.lang.String),
AutoProxyUtils.determineTargetClass(org.springframework.beans.factory.config.ConfigurableListableBeanFactory, java.lang.String),
Serialized Formadvisor, beforeExistingAdvisors| Constructor and Description |
|---|
AbstractBeanFactoryAwareAdvisingPostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected ProxyFactory |
prepareProxyFactory(java.lang.Object bean,
java.lang.String beanName)
Prepare a
ProxyFactory for the given bean. |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
customizeProxyFactory, isEligible, isEligible, postProcessAfterInitialization, postProcessBeforeInitialization, setBeforeExistingAdvisorsevaluateProxyInterfaces, getOrder, getProxyClassLoader, isConfigurationCallbackInterface, isInternalLanguageInterface, setBeanClassLoader, setOrder, setProxyClassLoadercopyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass, toStringpublic AbstractBeanFactoryAwareAdvisingPostProcessor()
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareprotected ProxyFactory prepareProxyFactory(java.lang.Object bean, java.lang.String beanName)
AbstractAdvisingBeanPostProcessorProxyFactory for the given bean.
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; AbstractAdvisingBeanPostProcessor.customizeProxyFactory(org.springframework.aop.framework.ProxyFactory) allows for
late customizations of those parts right before proxy creation.
prepareProxyFactory in class AbstractAdvisingBeanPostProcessorbean - the bean instance to create a proxy forbeanName - the corresponding bean nameProxyConfig settings and the specified beanAbstractAdvisingBeanPostProcessor.customizeProxyFactory(org.springframework.aop.framework.ProxyFactory)