@Singleton @Named(value="net.sf.mmm.util.lang.api.SystemUtil") public class SystemUtilImpl extends AbstractLoggableComponent implements SystemUtil
SystemUtil
interface.getInstance()
Modifier and Type | Field and Description |
---|---|
private static SystemUtil |
instance |
private SystemInformation |
systemInformation |
CDI_NAME, PROPERTY_JAVA_VM_NAME, PROPERTY_OS_ARCHITECTURE, PROPERTY_OS_NAME, PROPERTY_OS_VERSION
Constructor and Description |
---|
SystemUtilImpl()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
static SystemUtil |
getInstance()
This method gets the singleton instance of this
SystemUtil . |
SystemInformation |
getSystemInformation()
This method gets the
SystemInformation for the operating system running this java
virtual-machine. |
createLogger, doInitialize, getLogger
doInitialized, getInitializationState, initialize
private static SystemUtil instance
getInstance()
private final SystemInformation systemInformation
getSystemInformation()
public static SystemUtil getInstance()
SystemUtil
. Cdi.GET_INSTANCE
before using.public SystemInformation getSystemInformation()
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").getSystemInformation
in interface SystemUtil
SystemInformation
.Copyright © 2001–2014 mmm-Team. All rights reserved.