|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
/* |
|
|
|
|
* Copyright 2002-2007 the original author or authors. |
|
|
|
|
* Copyright 2002-2009 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -20,6 +20,7 @@ import java.util.ArrayList; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.regex.Pattern; |
|
|
|
|
|
|
|
|
|
import org.springframework.aop.Advisor; |
|
|
|
|
import org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator; |
|
|
|
|
import org.springframework.beans.factory.ListableBeanFactory; |
|
|
|
|
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory; |
|
|
|
@ -78,9 +79,9 @@ public class AnnotationAwareAspectJAutoProxyCreator extends AspectJAwareAdvisorA |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected List findCandidateAdvisors() { |
|
|
|
|
protected List<Advisor> findCandidateAdvisors() { |
|
|
|
|
// Add all the Spring advisors found according to superclass rules.
|
|
|
|
|
List advisors = super.findCandidateAdvisors(); |
|
|
|
|
List<Advisor> advisors = super.findCandidateAdvisors(); |
|
|
|
|
// Build Advisors for all AspectJ aspects in the bean factory.
|
|
|
|
|
advisors.addAll(this.aspectJAdvisorsBuilder.buildAspectJAdvisors()); |
|
|
|
|
return advisors; |
|
|
|
|