Package org.quartz.ee.jta
Class JTAJobRunShellFactory
- java.lang.Object
-
- org.quartz.ee.jta.JTAJobRunShellFactory
-
- All Implemented Interfaces:
JobRunShellFactory
public class JTAJobRunShellFactory extends java.lang.Object implements JobRunShellFactory
Responsible for creating the instances of
to be used within theJTAJobRunShell
instance.QuartzScheduler
This implementation does not re-use any objects, it simply makes a new JTAJobRunShell each time
borrowJobRunShell()
is called.- Author:
- James House
-
-
Constructor Summary
Constructors Constructor Description JTAJobRunShellFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobRunShell
createJobRunShell(TriggerFiredBundle bundle)
Called by the
to obtain instances ofQuartzSchedulerThread
.JobRunShell
void
initialize(Scheduler sched)
Initialize the factory, providing a handle to theScheduler
that should be made available within theJobRunShell
and theJobExecutionContext
s within it, and a handle to theSchedulingContext
that the shell will use in its own operations with theJobStore
.
-
-
-
Method Detail
-
initialize
public void initialize(Scheduler sched) throws SchedulerConfigException
Initialize the factory, providing a handle to the
Scheduler
that should be made available within theJobRunShell
and theJobExecutionContext
s within it, and a handle to theSchedulingContext
that the shell will use in its own operations with theJobStore
.- Specified by:
initialize
in interfaceJobRunShellFactory
- Throws:
SchedulerConfigException
-
createJobRunShell
public JobRunShell createJobRunShell(TriggerFiredBundle bundle) throws SchedulerException
Called by the
to obtain instances ofQuartzSchedulerThread
.JobRunShell
- Specified by:
createJobRunShell
in interfaceJobRunShellFactory
- Throws:
SchedulerException
-
-