java.lang.Objectorg.apache.geronimo.system.configuration.condition.SystemUtils
Helpers for java.lang.System.
If a system property cannot be read due to security restrictions,
the corresponding field in this class will be set to null
and a message will be written to System.err.
Based - on code from Avalon ExcaliburBased - on code from LuceneStephen - Colebourne - href="mailto:sdowney@panix.com">Steve Downey
Gary - GregoryMichael - BeckeTetsuya - KaneuchiRafal - KrupinskiJason - Gritman1.0 - $ - Rev: 470597 $ $Date: 2006-11-02 15:30:55 -0800 (Thu, 02 Nov 2006) $| Field Summary | ||
|---|---|---|
| public static final String | AWT_TOOLKIT | The Holds a class name, on Windows XP this is On platforms without a GUI, this value is Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | FILE_ENCODING | The File encoding, such as Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | FILE_SEPARATOR | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_AWT_FONTS | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_AWT_GRAPHICSENV | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_AWT_HEADLESS |
The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_AWT_PRINTERJOB | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_CLASS_PATH | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_CLASS_VERSION | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_COMPILER | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_ENDORSED_DIRS | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_EXT_DIRS | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_HOME | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_IO_TMPDIR | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_LIBRARY_PATH | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_RUNTIME_NAME | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_RUNTIME_VERSION | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_SPECIFICATION_NAME | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_SPECIFICATION_VENDOR | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_SPECIFICATION_VERSION | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_UTIL_PREFS_PREFERENCES_FACTORY | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_VENDOR | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_VENDOR_URL | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_VERSION | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_VM_INFO | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_VM_NAME | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_VM_SPECIFICATION_NAME | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_VM_SPECIFICATION_VENDOR | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_VM_SPECIFICATION_VERSION | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_VM_VENDOR | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_VM_VERSION | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | LINE_SEPARATOR | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | OS_ARCH | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | OS_NAME | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | OS_VERSION | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | PATH_SEPARATOR | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | USER_COUNTRY | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | USER_DIR | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | USER_HOME | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | USER_LANGUAGE | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | USER_NAME | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | USER_TIMEZONE | The Defaults to This value is initialized when the class is loaded. If System#setProperty(String,String) or System#setProperties(java.util.Properties) is called after this class is loaded, the value will be out of sync with that System property.
|
| public static final String | JAVA_VERSION_TRIMMED | Gets the Java version as a The field will return
|
| public static final float | JAVA_VERSION_FLOAT | Gets the Java version as a Example return values:
The field will return zero if #JAVA_VERSION is
|
| public static final int | JAVA_VERSION_INT | Gets the Java version as an Example return values:
The field will return zero if #JAVA_VERSION is
|
| public static final boolean | IS_JAVA_1_1 | Is The field will return |
| public static final boolean | IS_JAVA_1_2 | Is The field will return |
| public static final boolean | IS_JAVA_1_3 | Is The field will return |
| public static final boolean | IS_JAVA_1_4 | Is The field will return |
| public static final boolean | IS_JAVA_1_5 | Is The field will return |
| public static final boolean | IS_JAVA_1_6 | Is The field will return |
| public static final boolean | IS_OS_AIX | Is The field will return
|
| public static final boolean | IS_OS_HP_UX | Is The field will return
|
| public static final boolean | IS_OS_IRIX | Is The field will return
|
| public static final boolean | IS_OS_LINUX | Is The field will return
|
| public static final boolean | IS_OS_MAC | Is The field will return
|
| public static final boolean | IS_OS_MAC_OSX | Is The field will return
|
| public static final boolean | IS_OS_OS2 | Is The field will return
|
| public static final boolean | IS_OS_SOLARIS | Is The field will return
|
| public static final boolean | IS_OS_SUN_OS | Is The field will return
|
| public static final boolean | IS_OS_UNIX | Is The field will return
|
| public static final boolean | IS_OS_WINDOWS | Is The field will return
|
| public static final boolean | IS_OS_WINDOWS_2000 | Is The field will return
|
| public static final boolean | IS_OS_WINDOWS_95 | Is The field will return
|
| public static final boolean | IS_OS_WINDOWS_98 | Is The field will return
|
| public static final boolean | IS_OS_WINDOWS_ME | Is The field will return
|
| public static final boolean | IS_OS_WINDOWS_NT | Is The field will return
|
| public static final boolean | IS_OS_WINDOWS_XP | Is The field will return
|
| Constructor: |
|---|
SystemUtils instances should NOT be constructed in standard
programming. Instead, the class should be used as
This constructor is public to permit tools that require a JavaBean instance to operate. |
| Method from org.apache.geronimo.system.configuration.condition.SystemUtils Summary: |
|---|
| getJavaHome, getJavaIoTmpDir, getJavaVersion, getUserDir, getUserHome, isJavaAwtHeadless, isJavaVersionAtLeast, isJavaVersionAtLeast |
| Methods from java.lang.Object: |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.geronimo.system.configuration.condition.SystemUtils Detail: |
|---|
Gets the Java home directory as a |
Gets the Java IO temporary directory as a |
Deprecated! Use - #JAVA_VERSION_FLOAT instead.
Method will be removed in Commons Lang 3.0.
Gets the Java version number as a Example return values: |
Gets the user directory as a |
Gets the user home directory as a |
true. |
Is the Java version at least the requested version. Example input: |
Is the Java version at least the requested version. Example input: |