public class DelegatingJob extends Object implements 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(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(JobExecutionContext context) throws JobExecutionException
execute
in interface Job
JobExecutionException