Add exception-handler attribute support for AspectJ

Previously, the exception-handler attribute was not taken care of when
task:annotation-driven is used in AspectJ mode. This commit provides the
expected behavior.

Issue: SPR-12619
This commit is contained in:
Stephane Nicoll
2015-02-12 15:25:51 +01:00
parent fa8d202a45
commit 66735d01cf
5 changed files with 106 additions and 3 deletions

View File

@@ -7,10 +7,14 @@
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task.xsd">
<task:annotation-driven executor="testExecutor" scheduler="testScheduler"/>
<task:annotation-driven executor="testExecutor" scheduler="testScheduler"
exception-handler="testExceptionHandler"/>
<task:executor id="testExecutor"/>
<task:scheduler id="testScheduler"/>
<bean id="testExceptionHandler"
class="org.springframework.aop.interceptor.SimpleAsyncUncaughtExceptionHandler"/>
</beans>