org.springframework.scheduling.quartz

Class SchedulerAccessorBean

    • Constructor Detail

      • SchedulerAccessorBean

        public SchedulerAccessorBean()
    • Method Detail

      • setSchedulerName

        public void setSchedulerName(java.lang.String schedulerName)
        Specify the Quartz Scheduler to operate on via its scheduler name in the Spring application context or also in the Quartz SchedulerRepository.

        Schedulers can be registered in the repository through custom bootstrapping, e.g. via the StdSchedulerFactory or 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.

      • setScheduler

        public void setScheduler(Scheduler scheduler)
        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.

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws SchedulerException
        Description copied from interface: InitializingBean
        Invoked by the containing BeanFactory after it has set all bean properties and satisfied BeanFactoryAware, ApplicationContextAware etc.

        This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.

        Specified by:
        afterPropertiesSet in interface InitializingBean
        Throws:
        SchedulerException
      • findDefaultScheduler

        protected Scheduler findDefaultScheduler()