Class GuiceJobFactory

java.lang.Object
org.quartz.simpl.SimpleJobFactory
org.summerboot.jexpress.integration.quartz.GuiceJobFactory
All Implemented Interfaces:
org.quartz.spi.JobFactory

public class GuiceJobFactory extends org.quartz.simpl.SimpleJobFactory implements org.quartz.spi.JobFactory
Author:
Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.google.inject.Injector
     
    protected final Map<Class,org.quartz.Job>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    GuiceJobFactory(com.google.inject.Injector injector)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.quartz.Job
    newInstance(org.quartz.spi.TriggerFiredBundle triggerFiredBundle, org.quartz.Scheduler scheduler, Class<? extends org.quartz.Job> jobClass)
     
    org.quartz.Job
    newJob(org.quartz.spi.TriggerFiredBundle triggerFiredBundle, org.quartz.Scheduler scheduler)
     

    Methods inherited from class org.quartz.simpl.SimpleJobFactory

    getLog

    Methods inherited from class java.lang.Object

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

    • injector

      protected final com.google.inject.Injector injector
    • singletonJobs

      protected final Map<Class,org.quartz.Job> singletonJobs
  • Constructor Details

    • GuiceJobFactory

      public GuiceJobFactory(com.google.inject.Injector injector)
  • Method Details

    • newJob

      public org.quartz.Job newJob(org.quartz.spi.TriggerFiredBundle triggerFiredBundle, org.quartz.Scheduler scheduler) throws org.quartz.SchedulerException
      Specified by:
      newJob in interface org.quartz.spi.JobFactory
      Overrides:
      newJob in class org.quartz.simpl.SimpleJobFactory
      Throws:
      org.quartz.SchedulerException
    • newInstance

      protected org.quartz.Job newInstance(org.quartz.spi.TriggerFiredBundle triggerFiredBundle, org.quartz.Scheduler scheduler, Class<? extends org.quartz.Job> jobClass) throws org.quartz.SchedulerException
      Throws:
      org.quartz.SchedulerException