public class DelegatingJob extends Object implements org.quartz.Job
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 and Description |
---|
DelegatingJob(Runnable delegate)
Create a new DelegatingJob.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(org.quartz.JobExecutionContext context)
Delegates execution to the underlying Runnable.
|
Runnable |
getDelegate()
Return the wrapped Runnable implementation.
|
public DelegatingJob(Runnable delegate)
delegate
- the Runnable implementation to delegate topublic final Runnable getDelegate()
public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException
execute
in interface org.quartz.Job
org.quartz.JobExecutionException