Uploaded image for project: 'Scheduler'
  1. Scheduler
  2. MGNLSCH-55

Make sure jobs are created using injection rather than empty constructor

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.2
    • None
    • None

      By default, Quartz uses its org.quartz.simpl.SimpleJobFactory to create org.quartz.Job instances. This in turn uses java.lang.Class#newInstance, which means we're still using the default deprecated constructors of info.magnolia.module.scheduler.CommandJob which were deprecated with MGNLSCH-43.

      We need to implement our own factory, which uses our ComponentProvider (i.e Guice)

        Acceptance criteria

              gjoseph Magnolia International
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoR