ServerProcess

play.core.server.ServerProcess

Abstracts a JVM process so it can be mocked for testing or to isolate pseudo-processes within a VM. Code using this class should use the methods in this class instead of methods like System.getProperties(), System.exit(), etc.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def addShutdownHook(hook: => Unit): Unit

Add a hook to run when the process shuts down

Add a hook to run when the process shuts down

Attributes

def args: Seq[String]

The command line arguments the process as invoked with

The command line arguments the process as invoked with

Attributes

def classLoader: ClassLoader

The ClassLoader that should be used

The ClassLoader that should be used

Attributes

def exit(message: String, cause: Option[Throwable], returnCode: Int): Nothing

Exit the process with a message and optional cause and return code

Exit the process with a message and optional cause and return code

Attributes

def pid: Option[String]

The process's id

The process's id

Attributes

def properties: Properties

The process's system properties

The process's system properties

Attributes

Concrete methods

final def prop(name: String): Option[String]

Helper for getting properties

Helper for getting properties

Attributes