org.jboss
Class Version

java.lang.Object
  extended byorg.jboss.Version

public final class Version
extends java.lang.Object

Provides access to JBoss version (and build) properties.


Field Summary
static java.lang.String BUILD_DATE
           
static java.lang.String BUILD_ID
           
static java.lang.String BUILD_JVM_VENDOR
           
static java.lang.String BUILD_JVM_VERSION
           
static java.lang.String BUILD_NUMBER
           
static java.lang.String BUILD_OS
           
static java.lang.String BUILD_OS_ARCH
           
static java.lang.String BUILD_OS_VERSION
           
static java.lang.String VERSION_CVSTAG
           
static java.lang.String VERSION_MAJOR
           
static java.lang.String VERSION_MINOR
           
static java.lang.String VERSION_NAME
           
static java.lang.String VERSION_REVISION
           
static java.lang.String VERSION_TAG
           
 
Method Summary
 java.lang.String getBuildDate()
          Returns the build date for this version.
 java.lang.String getBuildID()
          Returns the build identifier for this version.
 java.lang.String getBuildJVM()
          Returns the BUILD_JVM_VERSION (BUILD_JVM_VENDOR) which should look like: 1.4.2_05-b04 (Sun Microsystems Inc.)
 java.lang.String getBuildNumber()
          Returns the build number for this version.
 java.lang.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)
 java.lang.String getCvsTag()
          Returns the CVS tag of the version.
static Version (src) getInstance()
          Get the single Version instance.
 int getMajor()
          Returns the major number of the version.
 int getMinor()
          Returns the minor number of the version.
 java.lang.String getName()
          Returns the name number of the version.
 java.util.Map getProperties()
          Returns an unmodifiable map of version properties.
 java.lang.String getProperty(java.lang.String name)
          Returns the value for the given property name.
 int getRevision()
          Returns the revision number of the version.
 java.lang.String getTag()
          Returns the tag of the version.
 java.lang.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 java.lang.String VERSION_MAJOR
See Also:
Constant Field Values (src)

VERSION_MINOR

public static final java.lang.String VERSION_MINOR
See Also:
Constant Field Values (src)

VERSION_REVISION

public static final java.lang.String VERSION_REVISION
See Also:
Constant Field Values (src)

VERSION_TAG

public static final java.lang.String VERSION_TAG
See Also:
Constant Field Values (src)

VERSION_NAME

public static final java.lang.String VERSION_NAME
See Also:
Constant Field Values (src)

VERSION_CVSTAG

public static final java.lang.String VERSION_CVSTAG
See Also:
Constant Field Values (src)

BUILD_NUMBER

public static final java.lang.String BUILD_NUMBER
See Also:
Constant Field Values (src)

BUILD_ID

public static final java.lang.String BUILD_ID
See Also:
Constant Field Values (src)

BUILD_DATE

public static final java.lang.String BUILD_DATE
See Also:
Constant Field Values (src)

BUILD_JVM_VERSION

public static final java.lang.String BUILD_JVM_VERSION
See Also:
Constant Field Values (src)

BUILD_JVM_VENDOR

public static final java.lang.String BUILD_JVM_VENDOR
See Also:
Constant Field Values (src)

BUILD_OS

public static final java.lang.String BUILD_OS
See Also:
Constant Field Values (src)

BUILD_OS_ARCH

public static final java.lang.String BUILD_OS_ARCH
See Also:
Constant Field Values (src)

BUILD_OS_VERSION

public static final java.lang.String BUILD_OS_VERSION
See Also:
Constant Field Values (src)
Method Detail

getInstance

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

Returns:
The single Version instance.

getProperties

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

Returns:
An unmodifiable map of version properties.

getProperty

public java.lang.String getProperty(java.lang.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 java.lang.String getTag()
Returns the tag of the version.

Returns:
The tag of the version.

getCvsTag

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

Returns:
The CVS tag of the version.

getName

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

Returns:
The name of the version.

getBuildID

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

Returns:
The build identifier for this version.

getBuildNumber

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

Returns:
The build number for this version.

getBuildDate

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

Returns:
The build date for this version.

getBuildJVM

public java.lang.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 java.lang.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 java.lang.String toString()
Returns the version information as a string.

Returns:
Basic information as a string.