org.jboss
Class Version

java.lang.Object
  extended by org.jboss.Version

public final class Version
extends Object

Provides access to JBoss version (and build) properties.

Version:
$Revision: 1.3.6.2 $
Author:
Jason Dillon, Scott.Stark@jboss.org

Field Summary
static String BUILD_DATE
           
static String BUILD_ID
           
static String BUILD_JVM_VENDOR
           
static String BUILD_JVM_VERSION
           
static String BUILD_NUMBER
           
static String BUILD_OS
           
static String BUILD_OS_ARCH
           
static String BUILD_OS_VERSION
           
static String VERSION_CVSTAG
           
static String VERSION_MAJOR
           
static String VERSION_MINOR
           
static String VERSION_NAME
           
static String VERSION_REVISION
           
static String VERSION_TAG
           
 
Method Summary
 String getBuildDate()
          Returns the build date for this version.
 String getBuildID()
          Returns the build identifier for this version.
 String getBuildJVM()
          Returns the BUILD_JVM_VERSION (BUILD_JVM_VENDOR) which should look like: 1.4.2_05-b04 (Sun Microsystems Inc.)
 String getBuildNumber()
          Returns the build number for this version.
 String getBuildOS()
          Returns the BUILD_OS (BUILD_OS_ARCH,BUILD_OS_VERSION) which should look like: Windows XP (x86,5.1) Linux (i386,2.4.21-4.ELsmp)
 String getCvsTag()
          Returns the CVS tag of the version.
static Version getInstance()
          Get the single Version instance.
 int getMajor()
          Returns the major number of the version.
 int getMinor()
          Returns the minor number of the version.
 String getName()
          Returns the name number of the version.
 Map getProperties()
          Returns an unmodifiable map of version properties.
 String getProperty(String name)
          Returns the value for the given property name.
 int getRevision()
          Returns the revision number of the version.
 String getTag()
          Returns the tag of the version.
 String toString()
          Returns the version information as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION_MAJOR

public static final String VERSION_MAJOR
See Also:
Constant Field Values

VERSION_MINOR

public static final String VERSION_MINOR
See Also:
Constant Field Values

VERSION_REVISION

public static final String VERSION_REVISION
See Also:
Constant Field Values

VERSION_TAG

public static final String VERSION_TAG
See Also:
Constant Field Values

VERSION_NAME

public static final String VERSION_NAME
See Also:
Constant Field Values

VERSION_CVSTAG

public static final String VERSION_CVSTAG
See Also:
Constant Field Values

BUILD_NUMBER

public static final String BUILD_NUMBER
See Also:
Constant Field Values

BUILD_ID

public static final String BUILD_ID
See Also:
Constant Field Values

BUILD_DATE

public static final String BUILD_DATE
See Also:
Constant Field Values

BUILD_JVM_VERSION

public static final String BUILD_JVM_VERSION
See Also:
Constant Field Values

BUILD_JVM_VENDOR

public static final String BUILD_JVM_VENDOR
See Also:
Constant Field Values

BUILD_OS

public static final String BUILD_OS
See Also:
Constant Field Values

BUILD_OS_ARCH

public static final String BUILD_OS_ARCH
See Also:
Constant Field Values

BUILD_OS_VERSION

public static final String BUILD_OS_VERSION
See Also:
Constant Field Values
Method Detail

getInstance

public static Version getInstance()
Get the single Version instance.

Returns:
The single Version instance.

getProperties

public Map getProperties()
Returns an unmodifiable map of version properties.

Returns:
An unmodifiable map of version properties.

getProperty

public String getProperty(String name)
Returns the value for the given property name.

Parameters:
name - - The name of the property.
Returns:
The property value or null if the property is not set.

getMajor

public int getMajor()
Returns the major number of the version.

Returns:
The major number of the version.

getMinor

public int getMinor()
Returns the minor number of the version.

Returns:
The minor number of the version.

getRevision

public int getRevision()
Returns the revision number of the version.

Returns:
The revision number of the version.

getTag

public String getTag()
Returns the tag of the version.

Returns:
The tag of the version.

getCvsTag

public String getCvsTag()
Returns the CVS tag of the version.

Returns:
The CVS tag of the version.

getName

public String getName()
Returns the name number of the version.

Returns:
The name of the version.

getBuildID

public String getBuildID()
Returns the build identifier for this version.

Returns:
The build identifier for this version.

getBuildNumber

public String getBuildNumber()
Returns the build number for this version.

Returns:
The build number for this version.

getBuildDate

public String getBuildDate()
Returns the build date for this version.

Returns:
The build date for this version.

getBuildJVM

public String getBuildJVM()
Returns the BUILD_JVM_VERSION (BUILD_JVM_VENDOR) which should look like: 1.4.2_05-b04 (Sun Microsystems Inc.)

Returns:

getBuildOS

public String getBuildOS()
Returns the BUILD_OS (BUILD_OS_ARCH,BUILD_OS_VERSION) which should look like: Windows XP (x86,5.1) Linux (i386,2.4.21-4.ELsmp)

Returns:

toString

public String toString()
Returns the version information as a string.

Overrides:
toString in class Object
Returns:
Basic information as a string.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.