Package org.jboss.ejb3.timerservice.quartz

Source Code of org.jboss.ejb3.timerservice.quartz.QuartzTimerJob

/*    */ package org.jboss.ejb3.timerservice.quartz;
/*    */
/*    */ import org.jboss.ejb3.timerservice.TimedObjectInvoker;
/*    */ import org.quartz.Job;
/*    */ import org.quartz.JobDataMap;
/*    */ import org.quartz.JobDetail;
/*    */ import org.quartz.JobExecutionContext;
/*    */ import org.quartz.JobExecutionException;
/*    */
/*    */ public class QuartzTimerJob
/*    */   implements Job
/*    */ {
/*    */   public void execute(JobExecutionContext context)
/*    */     throws JobExecutionException
/*    */   {
/* 39 */     PersistentTimer timer = (PersistentTimer)context.getJobDetail().getJobDataMap().get("timer");
/* 40 */     TimedObjectInvoker invoker = timer.getTimedObjectInvoker();
/*    */     try {
/* 42 */       invoker.callTimeout(timer.getTimer());
/*    */     }
/*    */     catch (Exception e) {
/* 45 */       throw new JobExecutionException(e);
/*    */     }
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.ejb3.timerservice.quartz.QuartzTimerJob
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.ejb3.timerservice.quartz.QuartzTimerJob

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.