1 16 package org.quartz.listeners; 17 18 import org.apache.commons.logging.Log; 19 import org.apache.commons.logging.LogFactory; 20 import org.quartz.TriggerListener; 21 import org.quartz.Trigger; 22 import org.quartz.JobExecutionContext; 23 24 41 public abstract class TriggerListenerSupport implements TriggerListener { 42 private final Log log = LogFactory.getLog(getClass()); 43 44 48 protected Log getLog() { 49 return log; 50 } 51 52 public void triggerFired(Trigger trigger, JobExecutionContext context) { 53 } 54 55 public boolean vetoJobExecution(Trigger trigger, JobExecutionContext context) { 56 return false; 57 } 58 59 public void triggerMisfired(Trigger trigger) { 60 } 61 62 public void triggerComplete( 63 Trigger trigger, 64 JobExecutionContext context, 65 int triggerInstructionCode) { 66 } 67 } 68 | Popular Tags |