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