Package org.openbravo.scheduling
Class JobDetailProvider
- java.lang.Object
-
- org.openbravo.scheduling.JobDetailProvider
-
public class JobDetailProvider extends Object
Allows to build the detail properties of a Quartz's Job instance.
-
-
Constructor Summary
Constructors Constructor Description JobDetailProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.quartz.JobDetail
createJobDetail(String name, ProcessBundle bundle)
Creates a new JobDetail with the specified name, usingDefaultJob
as the class of the JobDetail.static JobDetailProvider
getInstance()
-
-
-
Method Detail
-
getInstance
public static JobDetailProvider getInstance()
- Returns:
- the JobDetailProvider singleton instance
-
createJobDetail
public org.quartz.JobDetail createJobDetail(String name, ProcessBundle bundle) throws org.quartz.SchedulerException
Creates a new JobDetail with the specified name, usingDefaultJob
as the class of the JobDetail. Inserts the process bundle into the JobDetail's jobDataMap for retrieval when the job is executed.- Parameters:
name
- The name of the JobDetail. In general this will be the the ID of the AD_PROCESS_REQUEST.bundle
- The Openbravo process bundle.- Returns:
- a JobDetail instance for the specified name.
- Throws:
org.quartz.SchedulerException
- if there is an error building the JobDetail
-
-