类 BeanFactoryAspectJAdvisorsBuilder
- java.lang.Object
- org.springframework.aop.aspectj.annotation.BeanFactoryAspectJAdvisorsBuilder
public class BeanFactoryAspectJAdvisorsBuilder extends Object
Helper for retrieving @AspectJ beans from a BeanFactory and building Spring Advisors based on them, for use with auto-proxying.- 从以下版本开始:
- 2.0.2
- 作者:
- Juergen Hoeller
- 另请参阅:
AnnotationAwareAspectJAutoProxyCreator
构造器概要
构造器 构造器 说明 BeanFactoryAspectJAdvisorsBuilder(ListableBeanFactory beanFactory)
Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.BeanFactoryAspectJAdvisorsBuilder(ListableBeanFactory beanFactory, AspectJAdvisorFactory advisorFactory)
Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 List<Advisor>
buildAspectJAdvisors()
Look for AspectJ-annotated aspect beans in the current bean factory, and return to a list of Spring AOP Advisors representing them.protected boolean
isEligibleBean(String beanName)
Return whether the aspect bean with the given name is eligible.
构造器详细资料
BeanFactoryAspectJAdvisorsBuilder
public BeanFactoryAspectJAdvisorsBuilder(ListableBeanFactory beanFactory)
Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.- 参数:
beanFactory
- the ListableBeanFactory to scan
BeanFactoryAspectJAdvisorsBuilder
public BeanFactoryAspectJAdvisorsBuilder(ListableBeanFactory beanFactory, AspectJAdvisorFactory advisorFactory)
Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.- 参数:
beanFactory
- the ListableBeanFactory to scanadvisorFactory
- the AspectJAdvisorFactory to build each Advisor with
方法详细资料
buildAspectJAdvisors
public List<Advisor> buildAspectJAdvisors()
Look 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.
- 返回:
- the list of
Advisor
beans - 另请参阅:
isEligibleBean(java.lang.String)
isEligibleBean
protected boolean isEligibleBean(String beanName)
Return whether the aspect bean with the given name is eligible.- 参数:
beanName
- the name of the aspect bean- 返回:
- whether the bean is eligible