net.wicp.tams.common.spring.quartz.exe.QuartzJobLess Maven / Gradle / Ivy
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);
}
}