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)
Handle an application event.
|
protected void |
registerTrigger(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)
Set the ApplicationContext that this object runs in.
|
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)
org.springframework.context.ApplicationContextAware
Invoked after population of normal bean properties but before an init callback such
as InitializingBean.afterPropertiesSet()
or a custom init-method. Invoked after ResourceLoaderAware.setResourceLoader(org.springframework.core.io.ResourceLoader)
,
ApplicationEventPublisherAware.setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher)
and
MessageSourceAware
, if applicable.
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
setApplicationContext
in class org.springframework.scheduling.quartz.SchedulerFactoryBean
ctx
- the ApplicationContext object to be used by this objectBeanInitializationException
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
org.springframework.context.ApplicationListener
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
event
- the event to respond toprotected void registerTrigger(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.1.3-ice35-b52
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.