Holds state information for
Job
instances.
JobDataMap
instances are stored once when the Job
is added to a scheduler. They are also re-persisted after every execution of jobs annotated with @PersistJobDataAfterExecution
.
JobDataMap
instances can also be stored with a Trigger
. This can be useful in the case where you have a Job that is stored in the scheduler for regular/repeated use by multiple Triggers, yet with each independent triggering, you want to supply the Job with different data inputs.
The JobExecutionContext
passed to a Job at execution time also contains a convenience JobDataMap
that is the result of merging the contents of the trigger's JobDataMap (if any) over the Job's JobDataMap (if any).
@see Job
@see PersistJobDataAfterExecution
@see Trigger
@see JobExecutionContext
@author James House