1 17 18 21 package org.quartz.impl; 22 23 import org.quartz.Scheduler; 24 import org.quartz.SchedulerException; 25 import org.quartz.core.JobRunShell; 26 import org.quartz.core.JobRunShellFactory; 27 import org.quartz.core.SchedulingContext; 28 29 43 public class StdJobRunShellFactory implements JobRunShellFactory { 44 51 52 private Scheduler scheduler; 53 54 private SchedulingContext schedCtxt; 55 56 63 64 73 public void initialize(Scheduler scheduler, SchedulingContext schedCtxt) { 74 this.scheduler = scheduler; 75 this.schedCtxt = schedCtxt; 76 } 77 78 85 public JobRunShell borrowJobRunShell() throws SchedulerException { 86 return new JobRunShell(this, scheduler, schedCtxt); 87 } 88 89 96 public void returnJobRunShell(JobRunShell jobRunShell) { 97 jobRunShell.passivate(); 98 } 99 100 } 101 | Popular Tags |