spring-framework / org.springframework.scheduling.quartz / DelegatingJob

DelegatingJob

open class DelegatingJob : Job

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.

Author
Juergen Hoeller

Since
2.0

See Also
SpringBeanJobFactoryorg.quartz.Job#execute(org.quartz.JobExecutionContext)

Constructors

<init>

DelegatingJob(delegate: Runnable)

Create a new DelegatingJob.

Functions

execute

open fun execute(context: JobExecutionContext): Unit

Delegates execution to the underlying Runnable.

getDelegate

fun getDelegate(): Runnable

Return the wrapped Runnable implementation.