public class SchedulerFactoryBean
extends org.springframework.scheduling.quartz.SchedulerFactoryBean
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.context.ApplicationContextAware
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
JobDetailAwareTrigger . |
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, setSchedulerFactoryClass, setSchedulerName, setStartupDelay, setTaskExecutor, setWaitForJobsToCompleteOnShutdown, start, startScheduler, stop, stop
registerJobsAndTriggers, registerListeners, setCalendars, setGlobalJobListeners, setGlobalTriggerListeners, setJobDetails, setJobListeners, setJobSchedulingDataLocation, setJobSchedulingDataLocations, setOverwriteExistingJobs, setResourceLoader, setSchedulerListeners, setTransactionManager, setTriggerListeners, setTriggers
public void setApplicationContext(org.springframework.context.ApplicationContext ctx)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
setApplicationContext
in class org.springframework.scheduling.quartz.SchedulerFactoryBean
public 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)
JobDetailAwareTrigger
. 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.
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.