A lightweight interface wrapping a property contained in some unspecified map. Generally it'll be the system properties but this is not a requirement.
scala.sys.SystemProperties for an example usage.
A minimal Thread wrapper to enhance shutdown hooks. It knows how to unregister itself.
A bidirectional map wrapping the java System properties. Changes to System properties will be immediately visible in the map, and modifications made to the map will be immediately applied to the System properties. If a security manager is in place which prevents the properties from being read or written, the AccessControlException will be caught and discarded.
Register a shutdown hook to be run when the VM exits. The hook is automatically registered: the returned value can be ignored, but is available in case the Thread requires further modification. It can also be unregistered by calling ShutdownHookThread#remove().
Note that shutdown hooks are NOT guaranteed to be run.
the body of code to run at shutdown
the Thread which will run the shutdown hook.
Returns all active thread in the current thread's thread group and subgroups.
an IndexedSeq containing the threads.
An immutable Map representing the current system environment.
a Map containing the system environment variables.
Throw a new RuntimeException with the supplied message.
Exit the JVM with the given status code.
Exit the JVM with the default status code.
A bidirectional, mutable Map representing the current system Properties.
A convenience method to get the current Runtime instance.
the result of
The values in SystemProperties can be used to access and manipulate designated system properties. See
scala.sys.Prop for particulars.
if (!headless.isSet) headless.enable()
© 2002-2019 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
The package object
scala.syscontains methods for reading and altering core aspects of the virtual machine as well as the world outside of it.