public final class Environment
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
debug
Presence marker for the
DEBUG environment variable. |
Modifier and Type | Method and Description |
---|---|
static org.osgi.framework.Version |
getJavaVersion() |
static int |
getProcessIdentifier()
Returns the current JVM process identifier.
|
static java.lang.String |
getVariable(java.lang.String name)
Returns the value of the specified environment variable.
|
static boolean |
getVariableAsBoolean(java.lang.String name) |
public static final boolean debug
DEBUG
environment variable.public static org.osgi.framework.Version getJavaVersion()
public static int getProcessIdentifier()
java.lang.RuntimeException
- if accessing the process identifier fails.public static java.lang.String getVariable(java.lang.String name)
name
- the name of the environment variable, not null
null
if the variables is not defined in the system environment
or if SecurityException
is thrownpublic static boolean getVariableAsBoolean(java.lang.String name)