01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.admin;
05:
06: import com.tc.logging.TCLogging;
07:
08: public class ProductInfo {
09: private String m_version;
10: private String m_buildID;
11: private String m_license;
12: private String m_copyright;
13:
14: public static final String DEFAULT_LICENSE = "Unlimited development";
15:
16: public ProductInfo() {
17: TCLogging.class.toString();
18: com.tc.util.ProductInfo productInfo = com.tc.util.ProductInfo
19: .getInstance();
20:
21: m_version = productInfo.rawVersion();
22: m_buildID = productInfo.toLongString();
23: m_license = DEFAULT_LICENSE; // FIXME 2005-12-15 andrew
24: m_copyright = productInfo.copyright();
25: }
26:
27: public ProductInfo(String version, String buildID, String license,
28: String copyright) {
29: m_version = version;
30: m_buildID = buildID;
31: m_license = license;
32: m_copyright = copyright;
33: }
34:
35: public String getVersion() {
36: return m_version;
37: }
38:
39: public String getBuildID() {
40: return m_buildID;
41: }
42:
43: public String getLicense() {
44: return m_license;
45: }
46:
47: public String getCopyright() {
48: return m_copyright;
49: }
50: }
|