timesheetamountprocessingjob.java

来自「一个很好的开源项目管理系统源代码」· Java 代码 · 共 32 行

JAVA
32
字号
package net.java.workeffort.service.batch;import java.util.Calendar;import java.util.Date;import java.util.Map;import org.quartz.Job;import org.quartz.JobExecutionContext;import org.quartz.JobExecutionException;/** * The timesheet amount processing job. Configured in Spring. Uses quartz for * scheduling. See <code>batchJobs-context.xml</code> * <p> * Need to get the service (in this case the TimeshAmountProcessing) proxy to * execute the job and this service is made available to the job in * 'jobDataMap'.  * @author Antony Joseph */public class TimesheetAmountProcessingJob implements Job {    public void execute(JobExecutionContext context)            throws JobExecutionException {        Map properties = context.getJobDetail().getJobDataMap();        ITimesheetAmountProcessing timesheetAmountProcessing = (ITimesheetAmountProcessing) properties                .get("service");        timesheetAmountProcessing.processAmounts(new Date());    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?