MotechScheduledJob¶
-
public class
MotechScheduledJob
implements Job¶ Represents a MOTECH job scheduled with quartz. This class implements the
org.quartz.Job
interface - its execute method will be called when a MOTECH job in quartz triggers. Since jobs in MOTECH are basicallyorg.motechproject.event.MotechEvent
s getting published on a quartz schedule, upon execution this class retrieves theorg.motechproject.event.listener.EventRelay
from 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.