Package org.quartz.core
Class StandardJobRunShellFactory
java.lang.Object
org.quartz.core.StandardJobRunShellFactory
- All Implemented Interfaces:
JobRunShellFactory
Responsible for creating the instances of a
annotation in which
case it will create a
.
JobRunShell
to be used within the
QuartzScheduler
instance. It will create a standard JobRunShell
unless the job class has the
invalid @link
ExecuteInJTATransaction
invalid @link
JTAJobRunShell
This implementation does not re-use any objects, it simply makes a new JTAJobRunShell each
time borrowJobRunShell()
is called.
- Author:
- James House
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateJobRunShell
(TriggerFiredBundle bundle) Called by theQuartzSchedulerThread
to obtain instances ofJobRunShell
void
initialize
(Scheduler scheduler) 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
.
-
Constructor Details
-
StandardJobRunShellFactory
public StandardJobRunShellFactory()
-
-
Method Details
-
initialize
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
.- Specified by:
initialize
in interfaceJobRunShellFactory
- Throws:
SchedulerConfigException
-
createJobRunShell
Called by theQuartzSchedulerThread
to obtain instances ofJobRunShell
- Specified by:
createJobRunShell
in interfaceJobRunShellFactory
- Throws:
SchedulerException
-