ome.services.scheduler
Class SchedulerFactoryBean

java.lang.Object
  extended by org.springframework.scheduling.quartz.SchedulerAccessor
      extended by org.springframework.scheduling.quartz.SchedulerFactoryBean
          extended by ome.services.scheduler.SchedulerFactoryBean
All Implemented Interfaces:
EventListener, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<org.quartz.Scheduler>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.ResourceLoaderAware, org.springframework.context.SmartLifecycle

public class SchedulerFactoryBean
extends org.springframework.scheduling.quartz.SchedulerFactoryBean
implements org.springframework.context.ApplicationListener

Produces a

Field Summary
 
Fields inherited from class org.springframework.scheduling.quartz.SchedulerFactoryBean
DEFAULT_THREAD_COUNT, PROP_THREAD_COUNT
 
Fields inherited from class org.springframework.scheduling.quartz.SchedulerAccessor
logger, resourceLoader
 
Constructor Summary
SchedulerFactoryBean()
           
 
Method Summary
 void onApplicationEvent(org.springframework.context.ApplicationEvent 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.
 
Methods inherited from class org.springframework.scheduling.quartz.SchedulerFactoryBean
afterPropertiesSet, createScheduler, destroy, getConfigTimeDataSource, getConfigTimeNonTransactionalDataSource, getConfigTimeResourceLoader, getConfigTimeTaskExecutor, getObject, getObjectType, getPhase, getScheduler, isAutoStartup, isRunning, isSingleton, setApplicationContext, setApplicationContextSchedulerContextKey, setAutoStartup, setBeanName, setConfigLocation, setDataSource, setExposeSchedulerInRepository, setJobFactory, setNonTransactionalDataSource, setPhase, setQuartzProperties, setSchedulerContextAsMap, setSchedulerFactoryClass, setSchedulerName, setStartupDelay, setTaskExecutor, setWaitForJobsToCompleteOnShutdown, start, startScheduler, stop, stop
 
Methods inherited from class org.springframework.scheduling.quartz.SchedulerAccessor
registerJobsAndTriggers, registerListeners, setCalendars, setGlobalJobListeners, setGlobalTriggerListeners, setJobDetails, setJobListeners, setJobSchedulingDataLocation, setJobSchedulingDataLocations, setOverwriteExistingJobs, setResourceLoader, setSchedulerListeners, setTransactionManager, setTriggerListeners, setTriggers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulerFactoryBean

public SchedulerFactoryBean()
Method Detail

onApplicationEvent

public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
Specified by:
onApplicationEvent in interface org.springframework.context.ApplicationListener

registerTrigger

protected void registerTrigger(String beanName,
                               org.quartz.Trigger trigger)
Registers a JobDetailAwareTrigger. A method like this should really have protected visibility in the superclass.


restartIfNeeded

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.



OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

Copyright © 2009 The University of Dundee. All Rights Reserved.