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.
Author
Juergen Hoeller
Since
2.5.6
See Also
#setScheduler#setSchedulerName
SchedulerAccessorBean()
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 fun afterPropertiesSet(): Unit |
|
open fun getScheduler(): Scheduler
Return the Quartz Scheduler instance that this accessor operates on. |
|
open fun setBeanFactory(beanFactory: BeanFactory): Unit |
|
open fun setScheduler(scheduler: Scheduler): Unit
Specify the Quartz Scheduler instance to operate on. If not specified, this accessor will try to retrieve a default Scheduler bean from the containing application context. |
|
open fun setSchedulerName(schedulerName: String): Unit
Specify the Quartz Scheduler to operate on via its scheduler name in the Spring application context or also in the Quartz org.quartz.impl.SchedulerRepository. Schedulers can be registered in the repository through custom bootstrapping, e.g. via the org.quartz.impl.StdSchedulerFactory or org.quartz.impl.DirectSchedulerFactory factory classes. However, in general, it's preferable to use Spring's SchedulerFactoryBean which includes the job/trigger/listener capabilities of this accessor as well. If not specified, this accessor will try to retrieve a default Scheduler bean from the containing application context. |