The SystemVersionManager Class of the com.ms.util package provides methods that set and retrieve system version properties.
public class SystemVersionManager implements Runnable { // Methods public static Properties createVersion(int major, int minor, int buildnum, int buildinc, String description); public static Enumeration enumerate(); public static Properties getPackageVersion(String pkgname); public static Properties getSystemComponentVersion( String compname); public static Properties getVMVersion(); public void run(); }
Typically, this class is not called directly. Rather, it is used by implementing a VersionManager class that is derived from it. For a standard implementation of a VersionManager class, see AFCVersionManager in the Samples\Afc\AFCDetect directory of the Microsoft SDK for Java. This class can be added, without editing, directly to your distributed packages, which allows applications to check the version information of your distributed classes.
You can request a package by name by using the getPackageVersion method. This method searches for the information in a Version (*.Version) class in the requested package or a superpackage. The version information is in a Properties object. All version objects have the following keys:
All values are stored as instances of Strings. You can also use getSystemComponentVersion to request information about the following components: