| org.springframework.scheduling.quartz.JobDetailBean
afterPropertiesSet | public void afterPropertiesSet()(Code) | | |
getJobClass | public Class getJobClass()(Code) | | Overridden to support any job class, to allow a custom JobFactory
to adapt the given job class to the Quartz Job interface.
|
setApplicationContextJobDataKey | public void setApplicationContextJobDataKey(String applicationContextJobDataKey)(Code) | | Set the key of an ApplicationContext reference to expose in the JobDataMap,
for example "applicationContext". Default is none.
Only applicable when running in a Spring ApplicationContext.
In case of a QuartzJobBean, the reference will be applied to the Job
instance as bean property. An "applicationContext" attribute will correspond
to a "setApplicationContext" method in that scenario.
Note that BeanFactory callback interfaces like ApplicationContextAware
are not automatically applied to Quartz Job instances, because Quartz
itself is responsible for the lifecycle of its Jobs.
Note: When using persistent job stores where JobDetail contents will
be kept in the database, do not put an ApplicationContext reference into
the JobDataMap but rather into the SchedulerContext.
See Also: SchedulerFactoryBean.setApplicationContextSchedulerContextKey See Also: org.springframework.context.ApplicationContext |
setJobClass | public void setJobClass(Class jobClass)(Code) | | Overridden to support any job class, to allow a custom JobFactory
to adapt the given job class to the Quartz Job interface.
See Also: SchedulerFactoryBean.setJobFactory |
setJobDataAsMap | public void setJobDataAsMap(Map jobDataAsMap)(Code) | | Register objects in the JobDataMap via a given Map.
These objects will be available to this Job only,
in contrast to objects in the SchedulerContext.
Note: When using persistent Jobs whose JobDetail will be kept in the
database, do not put Spring-managed beans or an ApplicationContext
reference into the JobDataMap but rather into the SchedulerContext.
Parameters: jobDataAsMap - Map with String keys and any objects as values(for example Spring-managed beans) See Also: SchedulerFactoryBean.setSchedulerContextAsMap |
setJobListenerNames | public void setJobListenerNames(String[] names)(Code) | | Set a list of JobListener names for this job, referring to
non-global JobListeners registered with the Scheduler.
A JobListener name always refers to the name returned
by the JobListener implementation.
See Also: SchedulerFactoryBean.setJobListeners See Also: org.quartz.JobListener.getName |
|
|