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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateJobRunShell(TriggerFiredBundle bundle) Called by theQuartzSchedulerThreadto obtain instances of.JobRunShellvoidinitialize(Scheduler scheduler) Initialize the factory, providing a handle to theSchedulerthat should be made available within theJobRunShelland theJobExecutionContexts within it, and a handle to theSchedulingContextthat 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 theSchedulerthat should be made available within theJobRunShelland theJobExecutionContexts within it, and a handle to theSchedulingContextthat the shell will use in its own operations with theJobStore.- Specified by:
initializein interfaceJobRunShellFactory- Throws:
SchedulerConfigException
-
createJobRunShell
Called by theQuartzSchedulerThreadto obtain instances of.JobRunShell- Specified by:
createJobRunShellin interfaceJobRunShellFactory- Throws:
SchedulerException
-