Class AutoWiringSpringBeanJobFactory

java.lang.Object
org.springframework.scheduling.quartz.AdaptableJobFactory
org.springframework.scheduling.quartz.SpringBeanJobFactory
com.blueriq.component.api.quartz.AutoWiringSpringBeanJobFactory
All Implemented Interfaces:
org.quartz.spi.JobFactory, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.scheduling.quartz.SchedulerContextAware

public final class AutoWiringSpringBeanJobFactory extends org.springframework.scheduling.quartz.SpringBeanJobFactory
Creates job instances assuming that there is a prototype-scoped bean defined in the Spring Application Context for every job class defined in JobDetail instances. Job instances created with this factory support annotation-driven transactions, autowiring and all other regular Spring Beans features.
Since:
10.4
  • Constructor Summary

    Constructors
    Constructor
    Description
    AutoWiringSpringBeanJobFactory(org.springframework.context.ApplicationContext applicationContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
    createJobInstance(org.quartz.spi.TriggerFiredBundle bundle)
     

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

    isEligibleForPropertyPopulation, setApplicationContext, 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

    • AutoWiringSpringBeanJobFactory

      public AutoWiringSpringBeanJobFactory(org.springframework.context.ApplicationContext applicationContext)
  • Method Details

    • createJobInstance

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