public class BeanFactoryAspectJAdvisorsBuilder extends Object
AnnotationAwareAspectJAutoProxyCreator| Constructor and Description |
|---|
BeanFactoryAspectJAdvisorsBuilder(org.springframework.beans.factory.ListableBeanFactory beanFactory)
Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.
|
BeanFactoryAspectJAdvisorsBuilder(org.springframework.beans.factory.ListableBeanFactory beanFactory,
AspectJAdvisorFactory advisorFactory)
Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public BeanFactoryAspectJAdvisorsBuilder(org.springframework.beans.factory.ListableBeanFactory beanFactory)
beanFactory - the ListableBeanFactory to scanpublic BeanFactoryAspectJAdvisorsBuilder(org.springframework.beans.factory.ListableBeanFactory beanFactory,
AspectJAdvisorFactory advisorFactory)
beanFactory - the ListableBeanFactory to scanadvisorFactory - the AspectJAdvisorFactory to build each Advisor withpublic List<Advisor> buildAspectJAdvisors()
Creates a Spring Advisor for each AspectJ advice method.
Advisor beansisEligibleBean(java.lang.String)protected boolean isEligibleBean(String beanName)
beanName - the name of the aspect bean