From aaf69eb1f12e2bcd5c10c7d58ccb3fcdf543fb43 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 7 Oct 2014 12:42:17 +0200 Subject: [PATCH] Fix outdated references to JobDetailBean Issue: SPR-12306 --- src/asciidoc/index.adoc | 58 ++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/src/asciidoc/index.adoc b/src/asciidoc/index.adoc index 29899a2e20..492f51790a 100644 --- a/src/asciidoc/index.adoc +++ b/src/asciidoc/index.adoc @@ -47690,30 +47690,30 @@ classes that simplify the usage of Quartz within Spring-based applications. [[scheduling-quartz-jobdetail]] -==== Using the JobDetailBean -`JobDetail` objects contain all information needed to run a job. The Spring Framework -provides a `JobDetailBean` that makes the `JobDetail` more of an actual JavaBean with -sensible defaults. Let's have a look at an example: +==== Using the JobDetailFactoryBean +Quartz `JobDetail` objects contain all information needed to run a job. Spring provides a +`JobDetailFactoryBean` which provides bean-style properties for XML configuration purposes. +Let's have a look at an example: [source,xml,indent=0] [subs="verbatim,quotes"] ---- - - + + - + ---- -The job detail bean has all information it needs to run the job ( `ExampleJob`). The -timeout is specified in the job data map. The job data map is available through the -`JobExecutionContext` (passed to you at execution time), but the `JobDetailBean` also -maps the properties from the job data map to properties of the actual job. So in this -case, if the `ExampleJob` contains a property named `timeout`, the `JobDetailBean` will -automatically apply it: +The job detail configuration has all information it needs to run the job (`ExampleJob`). +The timeout is specified in the job data map. The job data map is available through the +`JobExecutionContext` (passed to you at execution time), but the `JobDetail` also gets +its properties from the job data mapped to properties of the job instance. So in this +case, if the `ExampleJob` contains a bean property named `timeout`, the `JobDetail` +will have it applied automatically: [source,java,indent=0] [subs="verbatim,quotes"] @@ -47726,7 +47726,7 @@ automatically apply it: /** * Setter called after the ExampleJob is instantiated - * with the value from the JobDetailBean (5) + * with the value from the JobDetailFactoryBean (5) */ public void setTimeout(int timeout) { this.timeout = timeout; @@ -47739,13 +47739,13 @@ automatically apply it: } ---- -All additional settings from the job detail bean are of course available to you as well. +All additional properties from the job data map are of course available to you as well. [NOTE] ==== Using the `name` and `group` properties, you can modify the name and the group -of the job, respectively. By default, the name of the job matches the bean name of the -job detail bean (in the example above, this is `exampleJob`). +of the job, respectively. By default, the name of the job matches the bean name +of the `JobDetailFactoryBean` (in the example above, this is `exampleJob`). ==== @@ -47760,8 +47760,8 @@ Often you just need to invoke a method on a specific object. Using the [subs="verbatim,quotes"] ---- - - + + ---- @@ -47803,9 +47803,9 @@ job will not start before the first one has finished. To make jobs resulting fro [subs="verbatim,quotes"] ---- - - - + + + ---- @@ -47837,17 +47837,17 @@ Find below a couple of examples: ---- - + - + - + - + - + ---- @@ -47861,8 +47861,8 @@ seconds and one every morning at 6 AM. To finalize everything, we need to set up - - + + -- GitLab