ServerProvider

play.core.server.ServerProvider
See theServerProvider companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

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.

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

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def fromConfiguration(classLoader: ClassLoader, configuration: Configuration): ServerProvider

Load a server provider from the configuration and classloader.

Load a server provider from the configuration and classloader.

Value parameters

classLoader

The ClassLoader to load the class from.

configuration

The configuration to look the server provider up from.

Attributes

Returns

The server provider, if one was configured.

Throws
ServerStartException

If the ServerProvider couldn't be created.

Implicits

Implicits

Load the default server provider.

Load the default server provider.

Attributes