net.sf.mmm.util.lang.api
Interface SystemUtil

All Known Implementing Classes:
SystemUtilImpl

@ComponentSpecification
public interface SystemUtil

This is the interface for a collection of utility functions that help to deal with things specific for the operating system running this java virtual machine.
ATTENTION:
A key-feature of Java is the great portability of the platform. Please use this util to make your application even more portable rather than restrict your code to platform specific circumstances.

Since:
2.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Field Summary
static String PROPERTY_JAVA_VM_NAME
          The name of the system-property for the name of the JVM.
static String PROPERTY_OS_ARCHITECTURE
          The name of the system-property for SystemInformation.getSystemArchitecture().
static String PROPERTY_OS_NAME
          The name of the system-property for SystemInformation.getSystemName().
static String PROPERTY_OS_VERSION
          The name of the system-property for SystemInformation.getSystemVersion().
 
Method Summary
 SystemInformation getSystemInformation()
          This method gets the SystemInformation for the operating system running this java virtual-machine.
 

Field Detail

PROPERTY_OS_NAME

static final String PROPERTY_OS_NAME
The name of the system-property for SystemInformation.getSystemName().

See Also:
Constant Field Values

PROPERTY_OS_ARCHITECTURE

static final String PROPERTY_OS_ARCHITECTURE
The name of the system-property for SystemInformation.getSystemArchitecture().

See Also:
Constant Field Values

PROPERTY_OS_VERSION

static final String PROPERTY_OS_VERSION
The name of the system-property for SystemInformation.getSystemVersion().

See Also:
Constant Field Values

PROPERTY_JAVA_VM_NAME

static final String PROPERTY_JAVA_VM_NAME
The name of the system-property for the name of the JVM.

See Also:
Constant Field Values
Method Detail

getSystemInformation

SystemInformation getSystemInformation()
This method gets the SystemInformation for the operating system running this java virtual-machine. It lets you determine specific things (e.g. if you are running on "MS Windows" or on a "mobile device").

Returns:
the SystemInformation.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.