Context
play.core.server.ServerProvider.Context
final case class Context(config: ServerConfig, appProvider: ApplicationProvider, actorSystem: ActorSystem, materializer: Materializer, stopHook: () => Future[_])
The context for creating a server. Passed to the createServer method.
Value parameters
- actorSystem
-
An ActorSystem that the server can use.
- appProvider
-
An object which can be queried to get an Application.
- config
-
Basic server configuration values.
- stopHook
-
A function that should be called by the server when it stops. This function can be used to close resources that are provided to the server.
Attributes
- Graph
-
- Supertypes
Members list
In this article