Class SchedulerFactoryBean

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, 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.Lifecycle, org.springframework.context.Phased, org.springframework.context.ResourceLoaderAware, org.springframework.context.SmartLifecycle

    public class SchedulerFactoryBean
    extends org.springframework.scheduling.quartz.SchedulerFactoryBean
    Scheduler factory to enable/disable the scheduler depending on the runlevel. @see org.springframework.scheduling.quartz.SchedulerFactoryBean
    Since:
    7.6.4
    Author:
    Marco Meschieri - LogicalDOC
    • Field Summary

      • Fields inherited from class org.springframework.scheduling.quartz.SchedulerFactoryBean

        DEFAULT_THREAD_COUNT, PROP_THREAD_COUNT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterPropertiesSet()  
      void destroy()  
      org.quartz.Scheduler getObject()  
      boolean isAutoStartup()  
      void start()  
      • Methods inherited from class org.springframework.scheduling.quartz.SchedulerFactoryBean

        getConfigTimeDataSource, getConfigTimeNonTransactionalDataSource, getConfigTimeResourceLoader, getConfigTimeTaskExecutor, getObjectType, getPhase, getScheduler, isRunning, isSingleton, setApplicationContext, setApplicationContextSchedulerContextKey, setAutoStartup, setBeanName, setConfigLocation, setDataSource, setExposeSchedulerInRepository, setJobFactory, setNonTransactionalDataSource, setPhase, setQuartzProperties, setSchedulerContextAsMap, setSchedulerFactory, setSchedulerFactoryClass, setSchedulerName, setStartupDelay, setTaskExecutor, setWaitForJobsToCompleteOnShutdown, stop, stop
      • Methods inherited from class org.springframework.scheduling.quartz.SchedulerAccessor

        setCalendars, setGlobalJobListeners, setGlobalTriggerListeners, setJobDetails, setJobSchedulingDataLocation, setJobSchedulingDataLocations, setOverwriteExistingJobs, setResourceLoader, setSchedulerListeners, setTransactionManager, setTriggers
    • Constructor Detail

      • SchedulerFactoryBean

        public SchedulerFactoryBean()
    • Method Detail

      • start

        public void start()
                   throws org.springframework.scheduling.SchedulingException
        Specified by:
        start in interface org.springframework.context.Lifecycle
        Overrides:
        start in class org.springframework.scheduling.quartz.SchedulerFactoryBean
        Throws:
        org.springframework.scheduling.SchedulingException
      • getObject

        public org.quartz.Scheduler getObject()
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<org.quartz.Scheduler>
        Overrides:
        getObject in class org.springframework.scheduling.quartz.SchedulerFactoryBean
      • isAutoStartup

        public boolean isAutoStartup()
        Specified by:
        isAutoStartup in interface org.springframework.context.SmartLifecycle
        Overrides:
        isAutoStartup in class org.springframework.scheduling.quartz.SchedulerFactoryBean
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Overrides:
        afterPropertiesSet in class org.springframework.scheduling.quartz.SchedulerFactoryBean
        Throws:
        Exception
      • destroy

        public void destroy()
                     throws org.quartz.SchedulerException
        Specified by:
        destroy in interface org.springframework.beans.factory.DisposableBean
        Overrides:
        destroy in class org.springframework.scheduling.quartz.SchedulerFactoryBean
        Throws:
        org.quartz.SchedulerException