KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > admin > ProductInfo


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.admin;
5
6 import com.tc.logging.TCLogging;
7
8
9 public class ProductInfo {
10   private String JavaDoc m_version;
11   private String JavaDoc m_buildID;
12   private String JavaDoc m_license;
13   private String JavaDoc m_copyright;
14
15   public static final String JavaDoc DEFAULT_LICENSE = "Unlimited development";
16
17   public ProductInfo() {
18     TCLogging.class.toString();
19     com.tc.util.ProductInfo productInfo = com.tc.util.ProductInfo.getThisProductInfo();
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 JavaDoc version, String JavaDoc buildID, String JavaDoc license, String JavaDoc copyright) {
28     m_version = version;
29     m_buildID = buildID;
30     m_license = license;
31     m_copyright = copyright;
32   }
33
34   public String JavaDoc getVersion() {
35     return m_version;
36   }
37
38   public String JavaDoc getBuildID() {
39     return m_buildID;
40   }
41
42   public String JavaDoc getLicense() {
43     return m_license;
44   }
45
46   public String JavaDoc getCopyright() {
47     return m_copyright;
48   }
49 }
50
Popular Tags