Skip to content

Commit a6b7072

Browse files
committed
Update Quartz documentation to use FactoryBeans
Update examples for Quartz scheduling to use SimpleTriggerFactoryBean and CronTriggerFactoryBean instead of SimpleTriggerBean and CronTriggerBean. Issue: SPR-10209
1 parent 8c2ace3 commit a6b7072

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/reference/docbook/scheduling.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -840,9 +840,9 @@ public class ExampleJob extends QuartzJobBean {
840840
object. Of course, we still need to schedule the jobs themselves. This
841841
is done using triggers and a
842842
<classname>SchedulerFactoryBean</classname>. Several triggers are
843-
available within Quartz. Spring offers two subclassed triggers with
844-
convenient defaults: <classname>CronTriggerBean</classname> and
845-
<classname>SimpleTriggerBean</classname>.</para>
843+
available within Quartz and Spring offers two Quartz <interfacename>FactoryBean</interfacename>
844+
implementations with convenient defaults: <classname>CronTriggerFactoryBean</classname> and
845+
<classname>SimpleTriggerFactoryBean</classname>.</para>
846846

847847
<para>Triggers need to be scheduled. Spring offers a
848848
<classname>SchedulerFactoryBean</classname> that exposes triggers to be
@@ -851,7 +851,7 @@ public class ExampleJob extends QuartzJobBean {
851851

852852
<para>Find below a couple of examples:</para>
853853

854-
<programlisting language="xml">&lt;bean id="simpleTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean"&gt;
854+
<programlisting language="xml">&lt;bean id="simpleTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerFactoryBean"&gt;
855855
&lt;!-- see the example of method invoking job above --&gt;
856856
&lt;property name="jobDetail" ref="jobDetail" /&gt;
857857
&lt;!-- 10 seconds --&gt;
@@ -860,7 +860,7 @@ public class ExampleJob extends QuartzJobBean {
860860
&lt;property name="repeatInterval" value="50000" /&gt;
861861
&lt;/bean&gt;
862862

863-
&lt;bean id="cronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"&gt;
863+
&lt;bean id="cronTrigger" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean"&gt;
864864
&lt;property name="jobDetail" ref="exampleJob" /&gt;
865865
&lt;!-- run every morning at 6 AM --&gt;
866866
&lt;property name="cronExpression" value="0 0 6 * * ?" /&gt;

0 commit comments

Comments
 (0)