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 standard QuartzSchedulerJobRunShell
unless the job class has the ExecuteInJTATransaction
annotation in which case it will create a JTAJobRunShell.
This implementation does not re-use any objects, it simply makes a new
JTAJobRunShell each time borrowJobRunShell() is called.
| Constructor and Description |
|---|
JTAAnnotationAwareJobRunShellFactory() |
| Modifier and Type | Method and Description |
|---|---|
JobRunShell |
createJobRunShell(TriggerFiredBundle bundle)
Called by the
to obtain instances of . |
void |
initialize(Scheduler sched)
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 JTAAnnotationAwareJobRunShellFactory()
public void initialize(Scheduler sched) 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.
initialize in interface JobRunShellFactorySchedulerConfigExceptionpublic JobRunShell createJobRunShell(TriggerFiredBundle bundle) throws SchedulerException
Called by the
to obtain instances of QuartzSchedulerThread.
JobRunShell
createJobRunShell in interface JobRunShellFactorySchedulerExceptionCopyright IBM Corp. 2024, 2025