Class BeanFactoryAspectJAdvisorsBuilder
java.lang.Object
org.springframework.aop.aspectj.annotation.BeanFactoryAspectJAdvisorsBuilder
Helper for retrieving @AspectJ beans from a BeanFactory and building
 Spring Advisors based on them, for use with auto-proxying.
- Since:
- 2.0.2
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionBeanFactoryAspectJAdvisorsBuilder(ListableBeanFactory beanFactory) Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.BeanFactoryAspectJAdvisorsBuilder(ListableBeanFactory beanFactory, AspectJAdvisorFactory advisorFactory) Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.
- 
Method SummaryModifier and TypeMethodDescriptionLook for AspectJ-annotated aspect beans in the current bean factory, and return to a list of Spring AOP Advisors representing them.protected booleanisEligibleBean(String beanName) Return whether the aspect bean with the given name is eligible.
- 
Constructor Details- 
BeanFactoryAspectJAdvisorsBuilderCreate a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.- Parameters:
- beanFactory- the ListableBeanFactory to scan
 
- 
BeanFactoryAspectJAdvisorsBuilderpublic BeanFactoryAspectJAdvisorsBuilder(ListableBeanFactory beanFactory, AspectJAdvisorFactory advisorFactory) Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.- Parameters:
- beanFactory- the ListableBeanFactory to scan
- advisorFactory- the AspectJAdvisorFactory to build each Advisor with
 
 
- 
- 
Method Details- 
buildAspectJAdvisorsLook for AspectJ-annotated aspect beans in the current bean factory, and return to a list of Spring AOP Advisors representing them.Creates a Spring Advisor for each AspectJ advice method. - Returns:
- the list of Advisorbeans
- See Also:
 
- 
isEligibleBeanReturn whether the aspect bean with the given name is eligible.- Parameters:
- beanName- the name of the aspect bean
- Returns:
- whether the bean is eligible
 
 
-