类 BeanFactoryAspectJAdvisorsBuilder
java.lang.Object
infra.aop.aspectj.annotation.BeanFactoryAspectJAdvisorsBuilder
Helper for retrieving @AspectJ beans from a BeanFactory and building
Framework Advisors based on them, for use with auto-proxying.
- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Harry Yang
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明private final AspectJAdvisorFactoryprivate final Map<String,MetadataAwareAspectInstanceFactory> private final infra.beans.factory.BeanFactoryprivate static final infra.logging.Logger -
构造器概要
构造器构造器说明BeanFactoryAspectJAdvisorsBuilder(infra.beans.factory.BeanFactory beanFactory) Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.BeanFactoryAspectJAdvisorsBuilder(infra.beans.factory.BeanFactory beanFactory, AspectJAdvisorFactory advisorFactory) Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory. -
方法概要
修饰符和类型方法说明Look for AspectJ-annotated aspect beans in the current bean factory, and return to a list of Framework AOP Advisors representing them.protected booleanisEligibleBean(String beanName) Return whether the aspect bean with the given name is eligible.
-
字段详细资料
-
logger
private static final infra.logging.Logger logger -
beanFactory
private final infra.beans.factory.BeanFactory beanFactory -
advisorFactory
-
aspectBeanNames
-
advisorsCache
-
aspectFactoryCache
-
-
构造器详细资料
-
BeanFactoryAspectJAdvisorsBuilder
public BeanFactoryAspectJAdvisorsBuilder(infra.beans.factory.BeanFactory beanFactory) Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.- 参数:
beanFactory- the BeanFactory to scan
-
BeanFactoryAspectJAdvisorsBuilder
public BeanFactoryAspectJAdvisorsBuilder(infra.beans.factory.BeanFactory beanFactory, AspectJAdvisorFactory advisorFactory) Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.- 参数:
beanFactory- the BeanFactory to scanadvisorFactory- the AspectJAdvisorFactory to build each Advisor with
-
-
方法详细资料
-
buildAspectJAdvisors
Look for AspectJ-annotated aspect beans in the current bean factory, and return to a list of Framework AOP Advisors representing them.Creates a Framework Advisor for each AspectJ advice method.
- 返回:
- the list of
Advisorbeans - 另请参阅:
-
isEligibleBean
Return whether the aspect bean with the given name is eligible.- 参数:
beanName- the name of the aspect bean- 返回:
- whether the bean is eligible
-