类 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

public class AnnotationAwareAspectJAutoProxyCreator extends AspectJAwareAdvisorAutoProxyCreator
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
另请参阅:
  • 字段详细资料

  • 构造器详细资料

    • AnnotationAwareAspectJAutoProxyCreator

      public AnnotationAwareAspectJAutoProxyCreator()
  • 方法详细资料

    • setIncludePatterns

      public void setIncludePatterns(List<String> patterns)
      Set a list of regex patterns, matching eligible @AspectJ bean names.

      Default is to consider all @AspectJ beans as eligible.

    • setAspectJAdvisorFactory

      public void setAspectJAdvisorFactory(AspectJAdvisorFactory aspectJAdvisorFactory)
    • initBeanFactory

      protected void initBeanFactory(infra.beans.factory.config.ConfigurableBeanFactory beanFactory)
      覆盖:
      initBeanFactory 在类中 AbstractAdvisorAutoProxyCreator
    • findCandidateAdvisors

      protected List<Advisor> findCandidateAdvisors()
      从类复制的说明: AbstractAdvisorAutoProxyCreator
      Find all candidate Advisors to use in auto-proxying.
      覆盖:
      findCandidateAdvisors 在类中 AbstractAdvisorAutoProxyCreator
      返回:
      the List of candidate Advisors
    • isInfrastructureClass

      protected boolean isInfrastructureClass(Class<?> beanClass)
      从类复制的说明: AbstractAutoProxyCreator
      Return 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

      protected boolean isEligibleAspectBean(String beanName)
      Check whether the given aspect bean is eligible for auto-proxying.

      If no <aop:include> elements were used then "includePatterns" will be null and all beans are included. If "includePatterns" is non-null, then one of the patterns must match.