From f6dd7e4df8f37d8626155d470da3c775b2a7cec8 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 28 Oct 2015 14:30:26 +0100 Subject: [PATCH] Fixed cron trigger example in reference documentation Issue: SPR-10474 --- src/asciidoc/integration.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/asciidoc/integration.adoc b/src/asciidoc/integration.adoc index eb35e79d26..ec0a9fc2e5 100644 --- a/src/asciidoc/integration.adoc +++ b/src/asciidoc/integration.adoc @@ -6404,13 +6404,13 @@ default). Here you can see what methods are available for `Trigger` implementati Spring provides two implementations of the `Trigger` interface. The most interesting one is the `CronTrigger`. It enables the scheduling of tasks based on cron expressions. For -example the following task is being scheduled to run 15 minutes past each hour but only +example, the following task is being scheduled to run 15 minutes past each hour but only during the 9-to-5 "business hours" on weekdays. [source,java,indent=0] [subs="verbatim"] ---- - scheduler.schedule(task, new CronTrigger("* 15 9-17 * * MON-FRI")); + scheduler.schedule(task, new CronTrigger("0 15 9-17 * * MON-FRI")); ---- The other out-of-the-box implementation is a `PeriodicTrigger` that accepts a fixed @@ -6422,7 +6422,7 @@ fixed-delay, those methods should be used directly whenever possible. The value the `Trigger` abstraction. For example, it may be convenient to allow periodic triggers, cron-based triggers, and even custom trigger implementations to be used interchangeably. Such a component could take advantage of dependency injection so that such `Triggers` -could be configured externally. +could be configured externally and therefore easily modified or extended.