类 AnnotationAwareAspectJAutoProxyCreator
- 所有已实现的接口:
AopInfrastructureBean,ProxyCreator,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.DisposableBean,infra.beans.factory.InitializationBeanPostProcessor,infra.beans.factory.SmartInitializingSingleton,infra.core.Ordered,Serializable
AspectJAwareAdvisorAutoProxyCreator subclass that processes all AspectJ
annotation aspects in the current application context, as well as Framework Advisors.
Any AspectJ annotated classes will automatically be recognized, and their advice applied if Framework AOP's proxy-based model is capable of applying it. This covers method execution joinpoints.
If the <aop:include> element is used, only @AspectJ beans with names matched by an include pattern will be considered as defining aspects to use for Framework auto-proxying.
Processing of Framework Advisors follows the rules established in
AbstractAdvisorAutoProxyCreator.
- 从以下版本开始:
- 4.0
- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明private classSubclass of BeanFactoryAspectJAdvisorsBuilderAdapter that delegates to surrounding AnnotationAwareAspectJAutoProxyCreator facilities. -
字段概要
字段从类继承的字段 infra.aop.framework.autoproxy.AbstractAutoProxyCreator
DO_NOT_PROXY, PROXY_WITHOUT_ADDITIONAL_INTERCEPTORS从接口继承的字段 infra.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Find all candidate Advisors to use in auto-proxying.protected voidinitBeanFactory(infra.beans.factory.config.ConfigurableBeanFactory beanFactory) protected booleanisEligibleAspectBean(String beanName) Check whether the given aspect bean is eligible for auto-proxying.protected booleanisInfrastructureClass(Class<?> beanClass) Return whether the given bean class represents an infrastructure class that should never be proxied.voidsetAspectJAdvisorFactory(AspectJAdvisorFactory aspectJAdvisorFactory) voidsetIncludePatterns(List<String> patterns) Set a list of regex patterns, matching eligible @AspectJ bean names.从类继承的方法 infra.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator
afterSingletonsInstantiated, destroy, extendAdvisors, shouldSkip, sortAdvisors从类继承的方法 infra.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator
advisorsPreFiltered, findAdvisorsThatCanApply, findEligibleAdvisors, getAdvicesAndAdvisorsForBean, isEligibleAdvisorBean, setBeanFactory从类继承的方法 infra.aop.framework.autoproxy.AbstractAutoProxyCreator
buildAdvisors, createProxy, customizeProxyFactory, determineBeanType, determineCandidateConstructors, getBeanFactory, getCacheKey, getCustomTargetSource, getEarlyBeanReference, getTargetSource, isFrozen, postProcessAfterInitialization, postProcessBeforeInstantiation, predictBeanType, setAdvisorAdapterRegistry, setApplyCommonInterceptorsFirst, setCustomTargetSourceCreators, setFrozen, setInterceptorNames, shouldProxyTargetClass, wrapIfNecessary从类继承的方法 infra.aop.framework.ProxyProcessorSupport
evaluateProxyInterfaces, getOrder, getProxyClassLoader, isConfigurationCallbackInterface, isInternalLanguageInterface, setBeanClassLoader, setOrder, setProxyClassLoader从类继承的方法 infra.aop.framework.ProxyConfig
copyFrom, isExposeProxy, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, 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从接口继承的方法 infra.beans.factory.SmartInitializingSingleton
afterSingletonsInstantiated
-
字段详细资料
-
includePatterns
-
aspectJAdvisorFactory
-
aspectJAdvisorsBuilder
-
-
构造器详细资料
-
AnnotationAwareAspectJAutoProxyCreator
public AnnotationAwareAspectJAutoProxyCreator()
-
-
方法详细资料
-
setIncludePatterns
Set a list of regex patterns, matching eligible @AspectJ bean names.Default is to consider all @AspectJ beans as eligible.
-
setAspectJAdvisorFactory
-
initBeanFactory
protected void initBeanFactory(infra.beans.factory.config.ConfigurableBeanFactory beanFactory) -
findCandidateAdvisors
从类复制的说明:AbstractAdvisorAutoProxyCreatorFind all candidate Advisors to use in auto-proxying.- 覆盖:
findCandidateAdvisors在类中AbstractAdvisorAutoProxyCreator- 返回:
- the List of candidate Advisors
-
isInfrastructureClass
从类复制的说明:AbstractAutoProxyCreatorReturn whether the given bean class represents an infrastructure class that should never be proxied.The default implementation considers Advices, Advisors and AopInfrastructureBeans as infrastructure classes.
- 覆盖:
isInfrastructureClass在类中AbstractAutoProxyCreator- 参数:
beanClass- the class of the bean- 返回:
- whether the bean represents an infrastructure class
- 另请参阅:
-
isEligibleAspectBean
Check whether the given aspect bean is eligible for auto-proxying.If no <aop:include> elements were used then "includePatterns" will be
nulland all beans are included. If "includePatterns" is non-null, then one of the patterns must match.
-