Class JobDetailProvider


  • public class JobDetailProvider
    extends Object
    Allows to build the detail properties of a Quartz's Job instance.
    • Constructor Detail

      • JobDetailProvider

        public JobDetailProvider()
    • 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, using DefaultJob 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