spring-framework / org.springframework.scheduling.quartz / SchedulerAccessorBean / setSchedulerName

setSchedulerName

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.