Package com.logicaldoc.core.task
Class SchedulerFactoryBean
- java.lang.Object
-
- org.springframework.scheduling.quartz.SchedulerAccessor
-
- org.springframework.scheduling.quartz.SchedulerFactoryBean
-
- com.logicaldoc.core.task.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.SchedulerFactoryBeanScheduler factory to enable/disable the scheduler depending on the runlevel. @see org.springframework.scheduling.quartz.SchedulerFactoryBean- Since:
- 7.6.4
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description SchedulerFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()org.quartz.SchedulergetObject()booleanisAutoStartup()voidstart()-
Methods inherited from class org.springframework.scheduling.quartz.SchedulerFactoryBean
destroy, 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
-
-
-
-
Method Detail
-
start
public void start() throws org.springframework.scheduling.SchedulingException- Specified by:
startin interfaceorg.springframework.context.Lifecycle- Overrides:
startin classorg.springframework.scheduling.quartz.SchedulerFactoryBean- Throws:
org.springframework.scheduling.SchedulingException
-
getObject
public org.quartz.Scheduler getObject()
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<org.quartz.Scheduler>- Overrides:
getObjectin classorg.springframework.scheduling.quartz.SchedulerFactoryBean
-
isAutoStartup
public boolean isAutoStartup()
- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle- Overrides:
isAutoStartupin classorg.springframework.scheduling.quartz.SchedulerFactoryBean
-
-