Class BeanFactoryAdvisorRetrievalHelper
java.lang.Object
org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper
Helper for retrieving standard Spring Advisors from a BeanFactory,
for use with auto-proxying.
- Since:
- 2.0.2
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate a new BeanFactoryAdvisorRetrievalHelper for the given BeanFactory. -
Method Summary
Modifier and TypeMethodDescriptionFind 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.
-
Constructor Details
-
BeanFactoryAdvisorRetrievalHelper
Create a new BeanFactoryAdvisorRetrievalHelper for the given BeanFactory.- Parameters:
beanFactory
- the ListableBeanFactory to scan
-
-
Method Details
-
findAdvisorBeans
Find all eligible Advisor beans in the current bean factory, ignoring FactoryBeans and excluding beans that are currently in creation.- Returns:
- the list of
Advisor
beans - See Also:
-
isEligibleBean
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
-