ReactiveMongoApiFromContext

play.modules.reactivemongo.ReactiveMongoApiFromContext

Can be used for a custom application loader.

import play.api.ApplicationLoader
import play.modules.reactivemongo.ReactiveMongoApiFromContext

class MyApplicationLoader extends ApplicationLoader {
 def load(context: ApplicationLoader.Context) =
   new MyComponents(context).application
}

class MyComponents(context: ApplicationLoader.Context)
   extends ReactiveMongoApiFromContext(context) {
 lazy val router = play.api.routing.Router.empty
 override lazy val httpFilters = Seq.empty[play.api.mvc.EssentialFilter]
}

Attributes

Graph
Supertypes

Members list

Concise view

Value members

Constructors

def this(context: Context)

Concrete methods

final protected def ec: ExecutionContext

The execution context

The execution context

Attributes

Inherited methods

Attributes

Inherited from:
BuiltInComponents

Attributes

Inherited from:
BuiltInComponents
protected def parse: PlayBodyParsers

Attributes

Inherited from:
BuiltInComponents

Attributes

Inherited from:
BuiltInComponents

Attributes

Inherited from:
BuiltInComponents

Deprecated and Inherited methods

Attributes

Deprecated
true
Inherited from:
BuiltInComponents

Concrete fields

lazy val dbName: String

The name of the database

The name of the database

Attributes

The instance name (default: default)

The instance name (default: default)

Attributes

The connection URI

The connection URI

Attributes

lazy override val strictMode: Boolean

Indicated whether the parsedUri must be strictly interpreted

Indicated whether the parsedUri must be strictly interpreted

Attributes

Inherited fields

The API initialized according the current configuration

The API initialized according the current configuration

Attributes

Inherited from:
ReactiveMongoApiComponents