|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.scheduling.quartz.DelegatingJob
public class DelegatingJob
Simple Quartz Job
adapter that delegates to a
given Runnable
instance.
Typically used in combination with property injection on the Runnable instance, receiving parameters from the Quartz JobDataMap that way instead of via the JobExecutionContext.
SpringBeanJobFactory
,
Job.execute(org.quartz.JobExecutionContext)
Constructor Summary | |
---|---|
DelegatingJob(Runnable delegate)
Create a new DelegatingJob. |
Method Summary | |
---|---|
void |
execute(JobExecutionContext context)
Delegates execution to the underlying Runnable, converting any Exception thrown to a Quartz JobExecutionException (as required by the Job contract). |
Runnable |
getDelegate()
Return the wrapped Runnable implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingJob(Runnable delegate)
delegate
- the Runnable implementation to delegate toMethod Detail |
---|
public final Runnable getDelegate()
public void execute(JobExecutionContext context) throws JobExecutionException
execute
in interface Job
JobExecutionException
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |