Package com.logicaldoc.core.task
Class DefaultSchedulerFactory
java.lang.Object
org.springframework.scheduling.quartz.SchedulerAccessor
org.springframework.scheduling.quartz.SchedulerFactoryBean
com.logicaldoc.core.task.DefaultSchedulerFactory
- 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 DefaultSchedulerFactory
extends org.springframework.scheduling.quartz.SchedulerFactoryBean
implements org.springframework.context.ApplicationContextAware
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 SummaryFields inherited from class org.springframework.scheduling.quartz.SchedulerFactoryBeanDEFAULT_THREAD_COUNT, PROP_THREAD_COUNTFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidorg.quartz.SchedulerbooleanvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidstart()Methods inherited from class org.springframework.scheduling.quartz.SchedulerFactoryBeandestroy, getConfigTimeDataSource, getConfigTimeNonTransactionalDataSource, getConfigTimeResourceLoader, getConfigTimeTaskExecutor, getObjectType, getPhase, getScheduler, isRunning, isSingleton, setApplicationContextSchedulerContextKey, setAutoStartup, setBeanName, setConfigLocation, setDataSource, setExposeSchedulerInRepository, setJobFactory, setNonTransactionalDataSource, setPhase, setQuartzProperties, setSchedulerContextAsMap, setSchedulerFactory, setSchedulerFactoryClass, setSchedulerName, setStartupDelay, setTaskExecutor, setWaitForJobsToCompleteOnShutdown, stopMethods inherited from class org.springframework.scheduling.quartz.SchedulerAccessorsetCalendars, setGlobalJobListeners, setGlobalTriggerListeners, setJobDetails, setJobSchedulingDataLocation, setJobSchedulingDataLocations, setOverwriteExistingJobs, setResourceLoader, setSchedulerListeners, setTransactionManager, setTriggersMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.SmartLifecyclestop
- 
Constructor Details- 
DefaultSchedulerFactorypublic DefaultSchedulerFactory()
 
- 
- 
Method Details- 
startpublic void start() throws org.springframework.scheduling.SchedulingException- Specified by:
- startin interface- org.springframework.context.Lifecycle
- Overrides:
- startin class- org.springframework.scheduling.quartz.SchedulerFactoryBean
- Throws:
- org.springframework.scheduling.SchedulingException
 
- 
getObjectpublic org.quartz.Scheduler getObject()- Specified by:
- getObjectin interface- org.springframework.beans.factory.FactoryBean<org.quartz.Scheduler>
- Overrides:
- getObjectin class- org.springframework.scheduling.quartz.SchedulerFactoryBean
 
- 
isAutoStartuppublic boolean isAutoStartup()- Specified by:
- isAutoStartupin interface- org.springframework.context.SmartLifecycle
- Overrides:
- isAutoStartupin class- org.springframework.scheduling.quartz.SchedulerFactoryBean
 
- 
afterPropertiesSet- Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
- Overrides:
- afterPropertiesSetin class- org.springframework.scheduling.quartz.SchedulerFactoryBean
- Throws:
- Exception
 
- 
setApplicationContextpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
- setApplicationContextin interface- org.springframework.context.ApplicationContextAware
- Overrides:
- setApplicationContextin class- org.springframework.scheduling.quartz.SchedulerFactoryBean
 
 
-