public interface JobDetailAwareTrigger
SchedulerFactoryBean will auto-detect Triggers that implement this interface and register them for the respective JobDetail accordingly.
The alternative is to configure a Trigger for a Job name and group: This involves the need to register the JobDetail object separately with SchedulerFactoryBean.
NOTE: As of Quartz 2.0, the recommended strategy is to define an entry of name "jobDetail" and type JobDetail in the trigger's JobDataMap.
SchedulerAccessor.setTriggers(Trigger...)
,
SchedulerAccessor.setJobDetails(JobDetail...)
,
org.quartz.Trigger#setJobName
,
org.quartz.Trigger#setJobGroup
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JOB_DETAIL_KEY
Name of the key for the JobDetail value in the trigger's JobDataMap.
|
Modifier and Type | Method and Description |
---|---|
JobDetail |
getJobDetail()
Return the JobDetail that this Trigger is associated with.
|
static final java.lang.String JOB_DETAIL_KEY