Spring任務調度包 sqpi

jopen 12年前發布 | 46K 次閱讀 Spring 作業調度框架

sqpi (Spring Injection into Quartz's Job Beans) 是一個將 Spring 的 Bean 注入到 Quartz 任務調度框架中。詳細的使用方法請看項目首頁。

<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>

項目主頁:http://www.baiduhome.net/lib/view/home/1324800003139

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!