|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.aspectj.annotation.BeanFactoryAspectJAdvisorsBuilder
public class BeanFactoryAspectJAdvisorsBuilder
Helper for retrieving @AspectJ beans from a BeanFactory and building Spring Advisors based on them, for use with auto-proxying.
AnnotationAwareAspectJAutoProxyCreator
,
BeanFactoryAdvisorRetrievalHelper
Constructor Summary | |
---|---|
BeanFactoryAspectJAdvisorsBuilder(ListableBeanFactory beanFactory)
Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory. |
|
BeanFactoryAspectJAdvisorsBuilder(ListableBeanFactory beanFactory,
AspectJAdvisorFactory advisorFactory)
Create a new BeanFactoryAspectJAdvisorsBuilder for the given BeanFactory. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanFactoryAspectJAdvisorsBuilder(ListableBeanFactory beanFactory)
beanFactory
- the ListableBeanFactory to scanpublic BeanFactoryAspectJAdvisorsBuilder(ListableBeanFactory beanFactory, AspectJAdvisorFactory advisorFactory)
beanFactory
- the ListableBeanFactory to scanadvisorFactory
- the AspectJAdvisorFactory to build each Advisor withMethod Detail |
---|
public 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
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |