类 BeanFactoryAspectJAdvisorsBuilder

java.lang.Object
infra.aop.aspectj.annotation.BeanFactoryAspectJAdvisorsBuilder
直接已知子类:
AnnotationAwareAspectJAutoProxyCreator.BeanFactoryAspectJAdvisorsBuilderAdapter

public class BeanFactoryAspectJAdvisorsBuilder extends Object
Helper for retrieving @AspectJ beans from a BeanFactory and building Framework Advisors based on them, for use with auto-proxying.
从以下版本开始:
4.0
作者:
Juergen Hoeller, Harry Yang
另请参阅:
  • 字段详细资料

  • 构造器详细资料

    • BeanFactoryAspectJAdvisorsBuilder

      public BeanFactoryAspectJAdvisorsBuilder(infra.beans.factory.BeanFactory beanFactory)
      Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.
      参数:
      beanFactory - the BeanFactory to scan
    • BeanFactoryAspectJAdvisorsBuilder

      public BeanFactoryAspectJAdvisorsBuilder(infra.beans.factory.BeanFactory beanFactory, AspectJAdvisorFactory advisorFactory)
      Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.
      参数:
      beanFactory - the BeanFactory to scan
      advisorFactory - the AspectJAdvisorFactory to build each Advisor with
  • 方法详细资料

    • buildAspectJAdvisors

      public List<Advisor> buildAspectJAdvisors()
      Look for AspectJ-annotated aspect beans in the current bean factory, and return to a list of Framework AOP Advisors representing them.

      Creates a Framework Advisor for each AspectJ advice method.

      返回:
      the list of Advisor beans
      另请参阅:
    • isEligibleBean

      protected boolean isEligibleBean(String beanName)
      Return whether the aspect bean with the given name is eligible.
      参数:
      beanName - the name of the aspect bean
      返回:
      whether the bean is eligible