The <task:annotation-driven/> element now registers the post-processor for @Scheduled in addition to the already existing @Async support. Both "scheduler" and "executor" attributes are available.

This commit is contained in:
Mark Fisher
2009-06-06 02:11:39 +00:00
parent c218b6c6c7
commit df6ba69bc5
4 changed files with 121 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task.xsd">
<task:annotation-driven executor="testExecutor" scheduler="testScheduler"/>
<task:executor id="testExecutor"/>
<task:scheduler id="testScheduler"/>
</beans>