Class SchedulerAccessorBean
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- InitializingBean,- ResourceLoaderAware
Scheduler instance.
 Compatible with Quartz 2.1.4 and higher, as of Spring 4.1.
- Since:
- 2.5.6
- Author:
- Juergen Hoeller
- See Also:
- 
Field SummaryFields inherited from class org.springframework.scheduling.quartz.SchedulerAccessorlogger, resourceLoader
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidInvoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.protected Schedulerprotected SchedulerfindScheduler(String schedulerName) Return the Quartz Scheduler instance that this accessor operates on.voidsetBeanFactory(BeanFactory beanFactory) Callback that supplies the owning factory to a bean instance.voidsetScheduler(Scheduler scheduler) Specify the QuartzSchedulerinstance to operate on.voidsetSchedulerName(String schedulerName) Specify the QuartzSchedulerto operate on via its scheduler name in the Spring application context or also in the QuartzSchedulerRepository.Methods inherited from class org.springframework.scheduling.quartz.SchedulerAccessorregisterJobsAndTriggers, registerListeners, setCalendars, setGlobalJobListeners, setGlobalTriggerListeners, setJobDetails, setJobSchedulingDataLocation, setJobSchedulingDataLocations, setOverwriteExistingJobs, setResourceLoader, setSchedulerListeners, setTransactionManager, setTriggers
- 
Constructor Details- 
SchedulerAccessorBeanpublic SchedulerAccessorBean()
 
- 
- 
Method Details- 
setSchedulerNameSpecify the QuartzSchedulerto operate on via its scheduler name in the Spring application context or also in the QuartzSchedulerRepository.Schedulers can be registered in the repository through custom bootstrapping, e.g. via the StdSchedulerFactoryorDirectSchedulerFactoryfactory classes. However, in general, it's preferable to use Spring'sSchedulerFactoryBeanwhich includes the job/trigger/listener capabilities of this accessor as well.If not specified, this accessor will try to retrieve a default Schedulerbean from the containing application context.
- 
setScheduler
- 
getSchedulerReturn the Quartz Scheduler instance that this accessor operates on.- Specified by:
- getSchedulerin class- SchedulerAccessor
 
- 
setBeanFactoryDescription copied from interface:BeanFactoryAwareCallback that supplies the owning factory to a bean instance.Invoked after the population of normal bean properties but before an initialization callback such as InitializingBean.afterPropertiesSet()or a custom init-method.- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
- Parameters:
- beanFactory- owning BeanFactory (never- null). The bean can immediately call methods on the factory.
- See Also:
 
- 
afterPropertiesSetDescription copied from interface:InitializingBeanInvoked by the containingBeanFactoryafter it has set all bean properties and satisfiedBeanFactoryAware,ApplicationContextAwareetc.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:
- afterPropertiesSetin interface- InitializingBean
- Throws:
- SchedulerException
 
- 
findScheduler- Throws:
- SchedulerException
 
- 
findDefaultScheduler
 
-