All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.wicp.tams.common.spring.quartz.exe.QuartzJobLess Maven / Gradle / Ivy

There is a newer version: 3.6.1
Show newest version
package net.wicp.tams.common.spring.quartz.exe;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import net.wicp.tams.common.spring.ConfigInit;
import net.wicp.tams.common.spring.quartz.JobTaskService;
import net.wicp.tams.common.spring.quartz.bean.ScheduleJob;

/***
 * 计划任务执行处 无状态
 * 
 * @author zhoujunhui
 *
 */

public class QuartzJobLess implements Job {

	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		ScheduleJob scheduleJob = (ScheduleJob) context.getMergedJobDataMap().get(JobTaskService.poNameInJobDataMap);
		JobTaskService jobTaskService = ConfigInit.context.getBean(JobTaskService.class);
		jobTaskService.callBusiExe(scheduleJob);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy