BaseJob.java

  1. package org.itracker.web.scheduler.tasks;

  2. import org.quartz.JobExecutionContext;
  3. import org.quartz.JobExecutionException;
  4. import org.quartz.StatefulJob;

  5. /**
  6.  * This class implements the periodic transmission of the meals and reservations
  7.  * file.
  8.  */
  9. public abstract class BaseJob implements StatefulJob {

  10.     protected Object getServices(JobExecutionContext context) {
  11.         return context.getJobDetail().getJobDataMap().get("services");
  12.     }

  13.     public void execute(final JobExecutionContext context) throws JobExecutionException {
  14.     }

  15. }