ReactiveMongoApiFromContext
abstract class ReactiveMongoApiFromContext(context: Context, val name: String) extends BuiltInComponentsFromContext with ReactiveMongoApiComponents
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]
}
Value members
Concrete methods
Inherited methods
Deprecated and Inherited methods
@deprecated("Use devContext.map(_.sourceMapper) instead", "2.7.0")
- Deprecated
- Inherited from:
- BuiltInComponents
Concrete fields
Inherited fields
The API initialized according the current configuration
The API initialized according the current configuration
- Inherited from:
- ReactiveMongoApiComponents