public class SchedulerFactoryBean
extends org.springframework.scheduling.quartz.SchedulerFactoryBean
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.context.ApplicationContextAware
Scheduler which automatically loads all the triggers it can find.| Constructor and Description |
|---|
SchedulerFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
protected void |
registerTrigger(java.lang.String beanName,
org.quartz.Trigger trigger)
Registers a
Trigger. |
protected void |
restartIfNeeded()
Similar to the
SchedulerFactoryBean.isRunning() method, but properly handles the
situation where the Scheduler has been completely shutdown and
therefore must be replaced. |
void |
setApplicationContext(org.springframework.context.ApplicationContext ctx) |
afterPropertiesSet, createScheduler, destroy, getConfigTimeDataSource, getConfigTimeNonTransactionalDataSource, getConfigTimeResourceLoader, getConfigTimeTaskExecutor, getObject, getObjectType, getPhase, getScheduler, isAutoStartup, isRunning, isSingleton, setApplicationContextSchedulerContextKey, setAutoStartup, setBeanName, setConfigLocation, setDataSource, setExposeSchedulerInRepository, setJobFactory, setNonTransactionalDataSource, setPhase, setQuartzProperties, setSchedulerContextAsMap, setSchedulerFactory, setSchedulerFactoryClass, setSchedulerName, setStartupDelay, setTaskExecutor, setWaitForJobsToCompleteOnShutdown, start, startScheduler, stop, stopregisterJobsAndTriggers, registerListeners, setCalendars, setGlobalJobListeners, setGlobalTriggerListeners, setJobDetails, setJobSchedulingDataLocation, setJobSchedulingDataLocations, setOverwriteExistingJobs, setResourceLoader, setSchedulerListeners, setTransactionManager, setTriggerspublic void setApplicationContext(org.springframework.context.ApplicationContext ctx)
setApplicationContext in interface org.springframework.context.ApplicationContextAwaresetApplicationContext in class org.springframework.scheduling.quartz.SchedulerFactoryBeanpublic void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>protected void registerTrigger(java.lang.String beanName,
org.quartz.Trigger trigger)
Trigger. A method like this should
really have protected visibility in the superclass.protected void restartIfNeeded()
SchedulerFactoryBean.isRunning() method, but properly handles the
situation where the Scheduler has been completely shutdown and
therefore must be replaced.