1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.gl.batch.service.impl;
17
18 import org.kuali.ole.sys.OLEConstants;
19 import org.kuali.ole.sys.context.SpringContext;
20 import org.kuali.rice.core.api.config.property.ConfigurationService;
21
22
23
24
25 public abstract class EnterpriseFeederStatusBase implements EnterpriseFeederStatus {
26 private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(EnterpriseFeederStatusBase.class);
27
28
29
30
31
32
33
34 public String getStatusDescription() {
35 try {
36 String description = SpringContext.getBean(ConfigurationService.class).getPropertyValueAsString(OLEConstants.ENTERPRISE_FEEDER_STATUS_DESCRIPTION_PREFIX + getClass().getName());
37 if (description == null) {
38 return getDefaultStatusDescription();
39 }
40 return description;
41 }
42 catch (RuntimeException e) {
43 LOG.error("Error occured trying to retrieve status description for class: " + getClass().getName(), e);
44 return getDefaultStatusDescription();
45 }
46 }
47
48
49
50
51
52
53
54 protected String getDefaultStatusDescription() {
55 return "Status description unavailable for class name: " + getClass().getName();
56 }
57 }