类 BeanFactoryAdvisorRetriever

java.lang.Object
infra.aop.framework.autoproxy.BeanFactoryAdvisorRetriever
直接已知子类:
AbstractAdvisorAutoProxyCreator.BeanFactoryAdvisorRetrieverAdapter

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

    • logger

      private static final infra.logging.Logger logger
    • beanFactory

      private final infra.beans.factory.config.ConfigurableBeanFactory beanFactory
    • cachedAdvisorBeanNames

      @Nullable private volatile Set<String> cachedAdvisorBeanNames
  • 构造器详细资料

    • BeanFactoryAdvisorRetriever

      public BeanFactoryAdvisorRetriever(infra.beans.factory.config.ConfigurableBeanFactory beanFactory)
      Create a new BeanFactoryAdvisorRetrievalHelper for the given BeanFactory.
      参数:
      beanFactory - the BeanFactory to scan
  • 方法详细资料

    • retrieveAdvisorBeans

      public List<Advisor> retrieveAdvisorBeans()
      Find all eligible Advisor beans in the current bean factory, ignoring FactoryBeans and excluding beans that are currently in creation.
      返回:
      the list of Advisor beans
      另请参阅:
    • isEligibleBean

      protected boolean isEligibleBean(String beanName)
      Determine whether the aspect bean with the given name is eligible.

      The default implementation always returns true.

      参数:
      beanName - the name of the aspect bean
      返回:
      whether the bean is eligible