Class AlfrescoJobFactory

java.lang.Object
org.springframework.scheduling.quartz.AdaptableJobFactory
org.springframework.scheduling.quartz.SpringBeanJobFactory
org.alfresco.repo.scheduler.AlfrescoJobFactory
All Implemented Interfaces:
org.quartz.spi.JobFactory, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.scheduling.quartz.SchedulerContextAware

public class AlfrescoJobFactory extends org.springframework.scheduling.quartz.SpringBeanJobFactory implements org.springframework.context.ApplicationContextAware
A special Job Factory that is based on the usual SpringBeanJobFactory, but also handles ApplicationContextAware job beans.
Author:
Nick Burch
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
    createJobInstance(org.quartz.spi.TriggerFiredBundle bundle)
     
    void
    setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
     

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

    isEligibleForPropertyPopulation, setIgnoredUnknownProperties, setSchedulerContext

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

    adaptJob, newJob

    Methods inherited from class java.lang.Object

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

    • AlfrescoJobFactory

      public AlfrescoJobFactory()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Overrides:
      setApplicationContext in class org.springframework.scheduling.quartz.SpringBeanJobFactory
    • createJobInstance

      protected Object createJobInstance(org.quartz.spi.TriggerFiredBundle bundle) throws Exception
      Overrides:
      createJobInstance in class org.springframework.scheduling.quartz.SpringBeanJobFactory
      Throws:
      Exception