public class TaskFactory extends 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
- SchedulerException
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.