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

Make sure jobs are created using injection rather than empty constructor

    XMLWordPrintable

Details

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

    Description

      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)

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoR