MotechScheduledJob¶
-
public class
MotechScheduledJobimplements Job¶ Represents a MOTECH job scheduled with quartz. This class implements the
org.quartz.Jobinterface - its execute method will be called when a MOTECH job in quartz triggers. Since jobs in MOTECH are basicallyorg.motechproject.event.MotechEvents getting published on a quartz schedule, upon execution this class retrieves theorg.motechproject.event.listener.EventRelayfrom the application context and uses it to immediately publish the event scheduled with this job. For every execution a new copy of the event is constructed.