open class AdaptableJobFactory : JobFactory
JobFactory implementation that supports java.lang.Runnable objects as well as standard Quartz org.quartz.Job instances. Compatible with Quartz 2.1.4 and higher, as of Spring 4.1. |
|
open class CronTriggerFactoryBean : FactoryBean<CronTrigger>, BeanNameAware, InitializingBean
A Spring FactoryBean for creating a Quartz org.quartz.CronTrigger instance, supporting bean-style usage for trigger configuration.
This class will also register the trigger with the job name and group of a given org.quartz.JobDetail. This allows SchedulerFactoryBean to automatically register a trigger for the corresponding JobDetail, instead of registering the JobDetail separately. |
|
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. |
|
open class JobDetailFactoryBean : FactoryBean<JobDetail>, BeanNameAware, ApplicationContextAware, InitializingBean
A Spring FactoryBean for creating a Quartz org.quartz.JobDetail instance, supporting bean-style usage for JobDetail configuration.
|
|
open class LocalDataSourceJobStore : JobStoreCMT
Subclass of Quartz's JobStoreCMT class that delegates to a Spring-managed DataSource instead of using a Quartz-managed connection pool. This JobStore will be used if SchedulerFactoryBean's "dataSource" property is set. Supports both transactional and non-transactional DataSource access. With a non-XA DataSource and local Spring transactions, a single DataSource argument is sufficient. In case of an XA DataSource and global JTA transactions, SchedulerFactoryBean's "nonTransactionalDataSource" property should be set, passing in a non-XA DataSource that will not participate in global transactions. Operations performed by this JobStore will properly participate in any kind of Spring-managed transaction, as it uses Spring's DataSourceUtils connection handling methods that are aware of a current transaction. Note that all Quartz Scheduler operations that affect the persistent job store should usually be performed within active transactions, as they assume to get proper locks etc. |
|
open class LocalTaskExecutorThreadPool : ThreadPool
Quartz ThreadPool adapter that delegates to a Spring-managed TaskExecutor instance, specified on SchedulerFactoryBean. |
|
open class MethodInvokingJobDetailFactoryBean : ArgumentConvertingMethodInvoker, FactoryBean<JobDetail>, BeanNameAware, BeanClassLoaderAware, BeanFactoryAware, InitializingBean
org.springframework.beans.factory.FactoryBean that exposes a org.quartz.JobDetail object which delegates job execution to a specified (static or non-static) method. Avoids the need for implementing a one-line Quartz Job that just invokes an existing service method on a Spring-managed target bean. Inherits common configuration properties from the MethodInvoker base class, such as Supports both concurrently running jobs and non-currently running jobs through the "concurrent" property. Jobs created by this MethodInvokingJobDetailFactoryBean are by default volatile and durable (according to Quartz terminology). NOTE: JobDetails created via this FactoryBean are not serializable and thus not suitable for persistent job stores. You need to implement your own Quartz Job as a thin wrapper for each case where you want a persistent job to delegate to a specific service method. Compatible with Quartz 2.1.4 and higher, as of Spring 4.1. |
|
abstract class QuartzJobBean : Job
Simple implementation of the Quartz Job interface, applying the passed-in JobDataMap and also the SchedulerContext as bean property values. This is appropriate because a new Job instance will be created for each execution. JobDataMap entries will override SchedulerContext entries with the same keys. For example, let's assume that the JobDataMap contains a key "myParam" with value "5": The Job implementation can then expose a bean property "myParam" of type int to receive such a value, i.e. a method "setMyParam(int)". This will also work for complex types like business objects etc. Note that the preferred way to apply dependency injection to Job instances is via a JobFactory: that is, to specify SpringBeanJobFactory as Quartz JobFactory (typically via |
|
open class ResourceLoaderClassLoadHelper : ClassLoadHelper
Wrapper that adapts from the Quartz ClassLoadHelper interface onto Spring's ResourceLoader interface. Used by default when the SchedulerFactoryBean runs in a Spring ApplicationContext. |
|
open class SchedulerAccessorBean : SchedulerAccessor, BeanFactoryAware, InitializingBean
Spring bean-style class for accessing a Quartz Scheduler, i.e. for registering jobs, triggers and listeners on a given org.quartz.Scheduler instance. Compatible with Quartz 2.1.4 and higher, as of Spring 4.1. |
|
open class SimpleThreadPoolTaskExecutor : SimpleThreadPool, AsyncListenableTaskExecutor, SchedulingTaskExecutor, InitializingBean, DisposableBean
Subclass of Quartz's SimpleThreadPool that implements Spring's org.springframework.core.task.TaskExecutor interface and listens to Spring lifecycle callbacks. Can be shared between a Quartz Scheduler (specified as "taskExecutor") and other TaskExecutor users, or even used completely independent of a Quartz Scheduler (as plain TaskExecutor backend). |
|
open class SimpleTriggerFactoryBean : FactoryBean<SimpleTrigger>, BeanNameAware, InitializingBean
A Spring FactoryBean for creating a Quartz org.quartz.SimpleTrigger instance, supporting bean-style usage for trigger configuration.
This class will also register the trigger with the job name and group of a given org.quartz.JobDetail. This allows SchedulerFactoryBean to automatically register a trigger for the corresponding JobDetail, instead of registering the JobDetail separately. |
|
open class SpringBeanJobFactory : AdaptableJobFactory, SchedulerContextAware
Subclass of AdaptableJobFactory that also supports Spring-style dependency injection on bean properties. This is essentially the direct equivalent of Spring's QuartzJobBean in the shape of a Quartz org.quartz.spi.JobFactory. Applies scheduler context, job data map and trigger data map entries as bean property values. If no matching bean property is found, the entry is by default simply ignored. This is analogous to QuartzJobBean's behavior. Compatible with Quartz 2.1.4 and higher, as of Spring 4.1. |
open class JobMethodInvocationFailedException : NestedRuntimeException
Unchecked exception that wraps an exception thrown from a target method. Propagated to the Quartz scheduler from a Job that reflectively invokes an arbitrary target method. |