org.openmrs.scheduler
Class TaskFactory

java.lang.Object
  extended by org.openmrs.scheduler.TaskFactory

public class TaskFactory
extends java.lang.Object


Method Summary
 Task createInstance(TaskDefinition taskDefinition)
          Creates a new instance of Schedulable used to run tasks.
static TaskFactory getInstance()
          Gets an instance of the schedulable factory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TaskFactory getInstance()
Gets an instance of the schedulable factory


createInstance

public Task createInstance(TaskDefinition taskDefinition)
                    throws SchedulerException
Creates a new instance of Schedulable used to run tasks. By default the returned task will be the given task wrapped with the TaskThreadedInitializationWrapper class so that the Task.initialize(TaskDefinition) method runs in a new thread.

Parameters:
taskDefinition -
Returns:
the created Task
Throws:
SchedulerException

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change