类 AbstractBeanFactoryAwareAdvisingPostProcessor
- 所有已实现的接口:
AopInfrastructureBean,infra.beans.factory.Aware,infra.beans.factory.BeanClassLoaderAware,infra.beans.factory.BeanFactoryAware,infra.beans.factory.config.BeanPostProcessor,infra.beans.factory.config.InstantiationAwareBeanPostProcessor,infra.beans.factory.config.SmartInstantiationAwareBeanPostProcessor,infra.beans.factory.InitializationBeanPostProcessor,infra.core.Ordered,Serializable
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.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Harry Yang
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明private infra.beans.factory.config.ConfigurableBeanFactoryprivate static final long从类继承的字段 infra.aop.framework.AbstractAdvisingBeanPostProcessor
advisor, beforeExistingAdvisors从接口继承的字段 infra.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected booleanisEligible(Object bean, String beanName) Check whether the given bean is eligible for advising with this post-processor'sAdvisor.protected ProxyFactoryprepareProxyFactory(Object bean, String beanName) Prepare aProxyFactoryfor the given bean.voidsetBeanFactory(infra.beans.factory.BeanFactory beanFactory) 从类继承的方法 infra.aop.framework.AbstractAdvisingBeanPostProcessor
customizeProxyFactory, determineBeanType, isEligible, postProcessAfterInitialization, setBeforeExistingAdvisors从类继承的方法 infra.aop.framework.ProxyProcessorSupport
evaluateProxyInterfaces, getOrder, getProxyClassLoader, isConfigurationCallbackInterface, isInternalLanguageInterface, setBeanClassLoader, setOrder, setProxyClassLoader从类继承的方法 infra.aop.framework.ProxyConfig
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass, toString从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 infra.beans.factory.InitializationBeanPostProcessor
postProcessBeforeInitialization从接口继承的方法 infra.beans.factory.config.InstantiationAwareBeanPostProcessor
postProcessAfterInstantiation, postProcessBeforeInstantiation从接口继承的方法 infra.beans.factory.config.SmartInstantiationAwareBeanPostProcessor
determineCandidateConstructors, getEarlyBeanReference, predictBeanType
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
beanFactory
@Nullable private infra.beans.factory.config.ConfigurableBeanFactory beanFactory
-
-
构造器详细资料
-
AbstractBeanFactoryAwareAdvisingPostProcessor
public AbstractBeanFactoryAwareAdvisingPostProcessor()
-
-
方法详细资料
-
setBeanFactory
public void setBeanFactory(infra.beans.factory.BeanFactory beanFactory) - 指定者:
setBeanFactory在接口中infra.beans.factory.BeanFactoryAware
-
prepareProxyFactory
从类复制的说明:AbstractAdvisingBeanPostProcessorPrepare aProxyFactoryfor 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(infra.aop.framework.ProxyFactory)allows for late customizations of those parts right before proxy creation.- 覆盖:
prepareProxyFactory在类中AbstractAdvisingBeanPostProcessor- 参数:
bean- the bean instance to create a proxy forbeanName- the corresponding bean name- 返回:
- the ProxyFactory, initialized with this processor's
ProxyConfigsettings and the specified bean - 另请参阅:
-
isEligible
从类复制的说明:AbstractAdvisingBeanPostProcessorCheck whether the given bean is eligible for advising with this post-processor'sAdvisor.Delegates to
AbstractAdvisingBeanPostProcessor.isEligible(Class)for target class checking. Can be overridden e.g. to specifically exclude certain beans by name.Note: Only called for regular bean instances but not for existing proxy instances which implement
Advisedand allow for adding the localAdvisorto the existing proxy'sAdvisorchain. For the latter,AbstractAdvisingBeanPostProcessor.isEligible(Class)is being called directly, with the actual target class behind the existing proxy (as determined byAopUtils.getTargetClass(Object)).- 覆盖:
isEligible在类中AbstractAdvisingBeanPostProcessor- 参数:
bean- the bean instancebeanName- the name of the bean- 另请参阅:
-