| 
 | The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.scheduling.quartz.AdaptableJobFactory
public class AdaptableJobFactory
JobFactory implementation that supports Runnable
 objects as well as standard Quartz Job instances.
DelegatingJob, 
adaptJob(Object)| Constructor Summary | |
|---|---|
| AdaptableJobFactory() | |
| Method Summary | |
|---|---|
| protected  Job | adaptJob(Object jobObject)Adapt the given job object to the Quartz Job interface. | 
| protected  Object | createJobInstance(TriggerFiredBundle bundle)Create an instance of the specified job class. | 
|  Job | newJob(TriggerFiredBundle bundle) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AdaptableJobFactory()
| Method Detail | 
|---|
public Job newJob(TriggerFiredBundle bundle)
           throws SchedulerException
newJob in interface JobFactorySchedulerException
protected Object createJobInstance(TriggerFiredBundle bundle)
                            throws Exception
Can be overridden to post-process the job instance.
bundle - the TriggerFiredBundle from which the JobDetail
 and other info relating to the trigger firing can be obtained
Exception - if job instantiation failed
protected Job adaptJob(Object jobObject)
                throws Exception
The default implementation supports straight Quartz Jobs as well as Runnables, which get wrapped in a DelegatingJob.
jobObject - the original instance of the specified job class
Exception - if the given job could not be adaptedDelegatingJob| 
 | The Spring Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||