public class

BeanFactoryAdvisorRetrievalHelper

extends Object
java.lang.Object
   ↳ org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper

Class Overview

Helper for retrieving standard Spring Advisors from a BeanFactory, for use with auto-proxying.

Summary

Public Constructors
BeanFactoryAdvisorRetrievalHelper(ConfigurableListableBeanFactory beanFactory)
Create a new BeanFactoryAdvisorRetrievalHelper for the given BeanFactory.
Public Methods
List<Advisor> findAdvisorBeans()
Find all eligible Advisor beans in the current bean factory, ignoring FactoryBeans and excluding beans that are currently in creation.
Protected Methods
boolean isEligibleBean(String beanName)
Determine whether the aspect bean with the given name is eligible.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BeanFactoryAdvisorRetrievalHelper (ConfigurableListableBeanFactory beanFactory)

Create a new BeanFactoryAdvisorRetrievalHelper for the given BeanFactory.

Parameters
beanFactory the ListableBeanFactory to scan

Public Methods

public List<Advisor> findAdvisorBeans ()

Find all eligible Advisor beans in the current bean factory, ignoring FactoryBeans and excluding beans that are currently in creation.

Returns

Protected Methods

protected boolean isEligibleBean (String beanName)

Determine whether the aspect bean with the given name is eligible.

The default implementation always returns true.

Parameters
beanName the name of the aspect bean
Returns
  • whether the bean is eligible