Spring任务调度包 sqpi
jopen
13年前
sqpi (Spring Injection into Quartz's Job Beans) 是一个将 Spring 的 Bean 注入到 Quartz 任务调度框架中。详细的使用方法请看项目首页。 <pre class="brush:xml; toolbar: true; auto-links: false;"><bean id="mockJobBean" class="org.springframework.scheduling.quartz.JobDetailBean"> <property name="jobClass" value="com.test.MockJobBean"/> <property name="jobDataAsMap"> <util:map> <entry key="filesHandler" value-ref="trifectaFilesHandler"/> // I want this to // be Prototype!!! ... </util:map> </property> </bean> <!-- so I'll define it in the scope, that will do the trick ;^) --> <bean id="trifectaFilesHandler" class="com.project.handlers.TrifectaFilesHandler" scope="prototype"> </bean></pre> <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1324800003139" target="_blank">http://www.open-open.com/lib/view/home/1324800003139</a></p>