1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.kuali.kfs.module.ld.batch;
20
21 import org.kuali.kfs.module.ld.batch.service.LaborYearEndBalanceForwardService;
22 import org.kuali.kfs.sys.batch.AbstractWrappedBatchStep;
23 import org.kuali.kfs.sys.batch.service.WrappedBatchExecutorService.CustomBatchExecutor;
24
25
26
27
28 public class LaborYearEndBalanceForwardStep extends AbstractWrappedBatchStep {
29 private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(LaborYearEndBalanceForwardStep.class);
30 private LaborYearEndBalanceForwardService laborYearEndBalanceForwardService;
31
32 @Override
33 protected CustomBatchExecutor getCustomBatchExecutor() {
34 return new CustomBatchExecutor() {
35 public boolean execute() {
36 laborYearEndBalanceForwardService.forwardBalance();
37 return true;
38 }
39 };
40 }
41
42
43
44
45
46
47
48 public void setLaborYearEndBalanceForwardService(LaborYearEndBalanceForwardService laborYearEndBalanceForwardService) {
49 this.laborYearEndBalanceForwardService = laborYearEndBalanceForwardService;
50 }
51 }