oracle.dss.util
Class VersionInfo
java.lang.Object
|
+--oracle.dss.util.VersionInfo
- public class VersionInfo
- extends java.lang.Object
VersionInfo Support for runtime version information.
The class provides a number of method to get version information for the oracle.dss.* packages based on a provided class or package. The following information can be obtained for a package:
- Name, the name of the component
- Version, the version number of the component
- Build version, the build version number of the component
- Build date, the build date of the component
- Build mode, the build mode of the component, debug, or non-debug
- Package Name, the actual used package name where the version information was found
- Source URL, the url where the version information was loaded from The version information is loaded from a file called version.txt. This file is added in the different component root folders (and sometimes subfolders) during the build process.
Method Summary |
static java.util.Properties |
getProperties(java.lang.Class versionClass)
Provide all the package version information of a class |
static java.util.Properties |
getProperties(java.lang.Object versionObject)
Provide all the package version information of an object |
static java.util.Properties |
getProperties(java.lang.String versionPackage)
Provide all the package version information of a class or package represented by a String |
static java.lang.String |
getProperty(java.lang.Class versionClass, java.lang.String key)
Provide a particular version information value for a class |
static java.lang.String |
getProperty(java.lang.Object versionObject, java.lang.String key)
Provide a particular version information value for an object |
static java.lang.String |
getProperty(java.lang.String versionPackage, java.lang.String key)
Provide a particular version information value of a class or package represented by a String |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUILD_VERSION
public static final java.lang.String BUILD_VERSION
COMPONENT_NUMBER
public static final java.lang.String COMPONENT_NUMBER
RELEASE_DESCRIPTION
public static final java.lang.String RELEASE_DESCRIPTION
BUILD_MODE
public static final java.lang.String BUILD_MODE
PACKAGE_NAME
public static final java.lang.String PACKAGE_NAME
SOURCE_URL
public static final java.lang.String SOURCE_URL
VersionInfo
public VersionInfo()
getProperties
public static java.util.Properties getProperties(java.lang.Class versionClass)
- Provide all the package version information of a class
-
- Parameters:
versionClass
- the class to get the version information for
- Returns:
- the version information as properties
getProperties
public static java.util.Properties getProperties(java.lang.Object versionObject)
- Provide all the package version information of an object
-
- Parameters:
versionObject
- the object to get the version information for
- Returns:
- the version information as properties
getProperties
public static java.util.Properties getProperties(java.lang.String versionPackage)
- Provide all the package version information of a class or package represented by a String
-
- Parameters:
versionPackage
- the package to get the version information for
- Returns:
- the version information as properties
getProperty
public static java.lang.String getProperty(java.lang.Class versionClass,
java.lang.String key)
- Provide a particular version information value for a class
-
- Parameters:
versionClass
- the class to get the version information for
key
- the key for the requested value
- Returns:
- the version information value as a String
getProperty
public static java.lang.String getProperty(java.lang.Object versionObject,
java.lang.String key)
- Provide a particular version information value for an object
-
- Parameters:
versionObject
- the object to get the version information for
key
- the key for the requested value
- Returns:
- the version information value as a String
getProperty
public static java.lang.String getProperty(java.lang.String versionPackage,
java.lang.String key)
- Provide a particular version information value of a class or package represented by a String
-
- Parameters:
versionPackage
- the package to get the version information for
key
- the key for the requested value
- Returns:
- the version information value as a String
Copyright © 2003, Oracle. All Rights Reserved.