public class TaskFactory
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
Task | 
createInstance(TaskDefinition taskDefinition)
Creates a new instance of Schedulable used to run tasks. 
 | 
static TaskFactory | 
getInstance()
Gets an instance of the schedulable factory 
 | 
public static TaskFactory getInstance()
public Task createInstance(TaskDefinition taskDefinition) throws SchedulerException
TaskThreadedInitializationWrapper class so that the
 Task.initialize(TaskDefinition) method runs in a new thread.taskDefinition - SchedulerExceptionCopyright © 2018 OpenMRS Inc.. All Rights Reserved.