Save This Page
Home » quartz-1.6.0 » org » quartz » core » [javadoc | source]
org.quartz.core
public interface: JobRunShellFactory [javadoc | source]

All Known Implementing Classes:
    JTAJobRunShellFactory, StdJobRunShellFactory

Responsible for creating the instances of JobRunShell to be used within the QuartzScheduler instance.

Although this interface looks a lot like an 'object pool', implementations do not have to support the re-use of instances. If an implementation does not wish to pool instances, then the borrowJobRunShell() method would simply create a new instance, and the returnJobRunShell method would do nothing.

Method from org.quartz.core.JobRunShellFactory Summary:
borrowJobRunShell,   initialize,   returnJobRunShell
Method from org.quartz.core.JobRunShellFactory Detail:
 public JobRunShell borrowJobRunShell() throws SchedulerException
 public  void initialize(Scheduler scheduler,
    SchedulingContext schedCtxt) throws SchedulerConfigException

    Initialize the factory, providing a handle to the Scheduler that should be made available within the JobRunShell and the JobExecutionCOntext s within it, and a handle to the SchedulingContext that the shell will use in its own operations with the JobStore.

 public  void returnJobRunShell(JobRunShell jobRunShell)