public class

DelegatingJob

extends Object
java.lang.Object
   ↳ org.springframework.scheduling.quartz.DelegatingJob

Class Overview

Simple Quartz org.quartz.Job adapter that delegates to a given java.lang.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.

See Also

Summary

Public Constructors
DelegatingJob(Runnable delegate)
Create a new DelegatingJob.
Public Methods
void execute(JobExecutionContext context)
Delegates execution to the underlying Runnable.
final Runnable getDelegate()
Return the wrapped Runnable implementation.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DelegatingJob (Runnable delegate)

Create a new DelegatingJob.

Parameters
delegate the Runnable implementation to delegate to

Public Methods

public void execute (JobExecutionContext context)

Delegates execution to the underlying Runnable.

Throws
JobExecutionException

public final Runnable getDelegate ()

Return the wrapped Runnable implementation.