Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-31584

Allow Quartz Jobs to be autowired by spring rather than requiring a wrapper.

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 11.0
    • Fix Version/s: 12.0
    • Component/s: Quartz Scheduler
    • Labels:
    • Test Plan:
      Hide

      Login to Sakai as admin.
      Visit the Administration Workspace -> Job Scheduler
      Create a new Job (Name: Log a message, Type: Log a Message).
      Accept the default job properties.
      Click on the triggers for the newly created job and click "Run Job Now" and accept the defaults on the job.
      Visit the event log and check that the job fired and completed.

      Show
      Login to Sakai as admin. Visit the Administration Workspace -> Job Scheduler Create a new Job (Name: Log a message, Type: Log a Message). Accept the default job properties. Click on the triggers for the newly created job and click "Run Job Now" and accept the defaults on the job. Visit the event log and check that the job fired and completed.

      Description

      At the moment you have to use a wrapper to get Spring bean run as a quartz job. It would fit the normal model of quartz much closer if a normal job class could be used with quartz and then quartz just creates an instance of it and asks spring to autowire up any dependencies.

      This reduces the amount of boilerplate code and makes our use of quartz more standard.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  buckett Matthew Buckett
                  Reporter:
                  buckett Matthew Buckett
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration