Default implementation of ReactiveMongoApi.
A mixin for controllers that will provide MongoDB actions.
MongoDB API
Can be used for a custom application loader.
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] }
Cake pattern components.
MongoDB module.
MongoDB module.
import scala.concurrent.Future import reactivemongo.api.DB import reactivemongo.api.bson.collection.BSONCollection import play.modules.reactivemongo.WithCollection class MyComponent( val collectionName: String) extends WithCollection[BSONCollection] { def database: Future[DB] = ??? }
Instances of Play Formatter for the ReactiveMongo types.
Instances of Play PathBindable for the ReactiveMongo types.