Class AlfrescoSchedulerAccessorBean

java.lang.Object
org.springframework.scheduling.quartz.SchedulerAccessor
org.springframework.scheduling.quartz.SchedulerAccessorBean
org.alfresco.schedule.AlfrescoSchedulerAccessorBean
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ResourceLoaderAware

public class AlfrescoSchedulerAccessorBean extends org.springframework.scheduling.quartz.SchedulerAccessorBean implements org.springframework.beans.factory.DisposableBean
The class is designed to add enabled check to switch on/off the triggers scheduling. The default is true.
Since:
6.0
Author:
amukha
  • Field Summary

    Fields inherited from class org.springframework.scheduling.quartz.SchedulerAccessor

    logger, resourceLoader
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    boolean
     
    void
    setEnabled(boolean enabled)
     
    void
    setTriggers(org.quartz.Trigger... triggers)
     

    Methods inherited from class org.springframework.scheduling.quartz.SchedulerAccessorBean

    findDefaultScheduler, findScheduler, getScheduler, setBeanFactory, setScheduler, setSchedulerName

    Methods inherited from class org.springframework.scheduling.quartz.SchedulerAccessor

    registerJobsAndTriggers, registerListeners, setCalendars, setGlobalJobListeners, setGlobalTriggerListeners, setJobDetails, setJobSchedulingDataLocation, setJobSchedulingDataLocations, setOverwriteExistingJobs, setResourceLoader, setSchedulerListeners, setTransactionManager

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AlfrescoSchedulerAccessorBean

      public AlfrescoSchedulerAccessorBean()
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • setTriggers

      public void setTriggers(org.quartz.Trigger... triggers)
      Overrides:
      setTriggers in class org.springframework.scheduling.quartz.SchedulerAccessor
    • afterPropertiesSet

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

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception