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
JobRunShellto be used within theinstance. It will create a standardQuartzSchedulerJobRunShellunless the job class has theExecuteInJTATransactionannotation 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 JobRunShellcreateJobRunShell(TriggerFiredBundle bundle)Called by theto obtain instances ofQuartzSchedulerThread.JobRunShellvoidinitialize(Scheduler sched)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.
-
-
-
Method Detail
-
initialize
public void initialize(Scheduler sched) throws SchedulerConfigException
Initialize the factory, providing a handle to the
Schedulerthat 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
public JobRunShell createJobRunShell(TriggerFiredBundle bundle) throws SchedulerException
Called by the
to obtain instances ofQuartzSchedulerThread.JobRunShell- Specified by:
createJobRunShellin interfaceJobRunShellFactory- Throws:
SchedulerException
-
-