AspectJAwareAdvisorAutoProxyCreator subclass that processes all AspectJ
annotation aspects in the current application context, as well as Spring Advisors.
Any AspectJ annotated classes will automatically be recognized, and their advice applied if Spring AOP's proxy-based model is capable of applying it. This covers method execution joinpoints.
If the <aop:include> element is used, only @AspectJ beans with names matched by an include pattern will be considered as defining aspects to use for Spring auto-proxying.
Processing of Spring Advisors follows the rules established in
org..
org.springframework.aop.aspectj.annotation.AspectJAdvisorFactory
| Modifier and Type | Class and Description |
|---|---|
| private class | AnnotationAwareAspectJAutoProxyCreator.
Subclass of BeanFactoryAspectJAdvisorsBuilderAdapter that delegates to surrounding AnnotationAwareAspectJAutoProxyCreator facilities. |
| Modifier and Type | Field and Description |
|---|---|
| private AspectJAdvisorFactory | |
| private BeanFactoryAspectJAdvisorsBuilder | |
| private List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected List | findCandidateAdvisors()
Overrides org. Find all candidate Advisors to use in auto-proxying. |
| protected void | |
| protected boolean | isEligibleAspectBean(String beanName)
Check whether the given aspect bean is eligible for auto-proxying. |
| protected boolean | isInfrastructureClass(Class<?>
the class of the bean beanClass)Overrides org. Return whether the given bean class represents an infrastructure class that should never be proxied. |
| public void | |
| public void | setIncludePatterns(List<String> patterns)
Set a list of regex patterns, matching eligible @AspectJ bean names. |
| aspectJAdvisorFactory | back to summary |
|---|---|
| private AspectJAdvisorFactory aspectJAdvisorFactory
| |
| aspectJAdvisorsBuilder | back to summary |
|---|---|
| private BeanFactoryAspectJAdvisorsBuilder aspectJAdvisorsBuilder
| |
| includePatterns | back to summary |
|---|---|
| private List<Pattern> includePatterns
| |
| AnnotationAwareAspectJAutoProxyCreator | back to summary |
|---|---|
| public AnnotationAwareAspectJAutoProxyCreator() | |
| findCandidateAdvisors | back to summary |
|---|---|
| protected List Overrides org. Doc from org. Find all candidate Advisors to use in auto-proxying. | |
| initBeanFactory | back to summary |
|---|---|
| protected void initBeanFactory(ConfigurableListableBeanFactory beanFactory) Overrides org.
| |
| isEligibleAspectBean | back to summary |
|---|---|
| protected boolean isEligibleAspectBean(String beanName) Check whether the given aspect bean is eligible for auto-proxying. If no <aop:include> elements were used then "includePatterns" will be
| |
| isInfrastructureClass | back to summary |
|---|---|
| protected boolean isInfrastructureClass(Class<?> beanClass) Overrides org. Doc from org. Return whether the given bean class represents an infrastructure class that should never be proxied. The default implementation considers Advices, Advisors and AopInfrastructureBeans as infrastructure classes. | |
| setAspectJAdvisorFactory | back to summary |
|---|---|
| public void setAspectJAdvisorFactory(AspectJAdvisorFactory aspectJAdvisorFactory) | |
| setIncludePatterns | back to summary |
|---|---|
| public void setIncludePatterns(List<String> patterns) Set a list of regex patterns, matching eligible @AspectJ bean names. Default is to consider all @AspectJ beans as eligible. | |
| Access | Constructor and Description |
|---|---|
| public | BeanFactoryAspectJAdvisorsBuilderAdapter(ListableBeanFactory beanFactory, AspectJAdvisorFactory advisorFactory)
|
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | isEligibleBean(String
the name of the aspect bean beanName)Overrides org. Return whether the aspect bean with the given name is eligible. |
| BeanFactoryAspectJAdvisorsBuilderAdapter | back to summary |
|---|---|
| public BeanFactoryAspectJAdvisorsBuilderAdapter(ListableBeanFactory beanFactory, AspectJAdvisorFactory advisorFactory) | |
| isEligibleBean | back to summary |
|---|---|
| protected boolean isEligibleBean(String beanName) Overrides org. Doc from org. Return whether the aspect bean with the given name is eligible. | |