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