Class AutowiringSpringBeanJobFactory

  • All Implemented Interfaces:
    org.quartz.spi.JobFactory, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.scheduling.quartz.SchedulerContextAware

    @Component
    public class AutowiringSpringBeanJobFactory
    extends org.springframework.scheduling.quartz.SpringBeanJobFactory
    implements org.springframework.context.ApplicationContextAware
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.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 Detail

      • AutowiringSpringBeanJobFactory

        public AutowiringSpringBeanJobFactory()
    • Method Detail

      • setApplicationContext

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

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