Package org.quartz.ee.jta
Class JTAAnnotationAwareJobRunShellFactory
- java.lang.Object
-
- org.quartz.ee.jta.JTAAnnotationAwareJobRunShellFactory
-
- All Implemented Interfaces:
JobRunShellFactory
public class JTAAnnotationAwareJobRunShellFactory extends java.lang.Object implements JobRunShellFactory
Responsible for creating the instances of a
JobRunShell
to be used within the
instance. It will create a standardQuartzScheduler
JobRunShell
unless the job class has theExecuteInJTATransaction
annotation in which case it will create aJTAJobRunShell
.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 JTAAnnotationAwareJobRunShellFactory()
-
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
-
-