类 DelegatingJob
- java.lang.Object
- org.springframework.scheduling.quartz.DelegatingJob
- 所有已实现的接口:
Job
public class DelegatingJob extends Object implements Job
Simple QuartzJob
adapter that delegates to a givenRunnable
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.
- 从以下版本开始:
- 2.0
- 作者:
- Juergen Hoeller
- 另请参阅:
SpringBeanJobFactory
,Job.execute(org.quartz.JobExecutionContext)
构造器概要
构造器 构造器 说明 DelegatingJob(Runnable delegate)
Create a new DelegatingJob.
构造器详细资料
DelegatingJob
public DelegatingJob(Runnable delegate)
Create a new DelegatingJob.- 参数:
delegate
- the Runnable implementation to delegate to
方法详细资料
getDelegate
public final Runnable getDelegate()
Return the wrapped Runnable implementation.
execute
public void execute(JobExecutionContext context) throws JobExecutionException
Delegates execution to the underlying Runnable.- 指定者:
execute
在接口中Job
- 抛出:
JobExecutionException