类 BeanFactoryAdvisorRetrievalHelper
- java.lang.Object
- org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper
public class BeanFactoryAdvisorRetrievalHelper extends Object
Helper for retrieving standard Spring Advisors from a BeanFactory, for use with auto-proxying.- 从以下版本开始:
- 2.0.2
- 作者:
- Juergen Hoeller
- 另请参阅:
AbstractAdvisorAutoProxyCreator
构造器概要
构造器 构造器 说明 BeanFactoryAdvisorRetrievalHelper(ConfigurableListableBeanFactory beanFactory)
Create a new BeanFactoryAdvisorRetrievalHelper for the given BeanFactory.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 List<Advisor>
findAdvisorBeans()
Find all eligible Advisor beans in the current bean factory, ignoring FactoryBeans and excluding beans that are currently in creation.protected boolean
isEligibleBean(String beanName)
Determine whether the aspect bean with the given name is eligible.
构造器详细资料
BeanFactoryAdvisorRetrievalHelper
public BeanFactoryAdvisorRetrievalHelper(ConfigurableListableBeanFactory beanFactory)
Create a new BeanFactoryAdvisorRetrievalHelper for the given BeanFactory.- 参数:
beanFactory
- the ListableBeanFactory to scan
方法详细资料
findAdvisorBeans
public List<Advisor> findAdvisorBeans()
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(java.lang.String)
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