play.modules.reactivemongo

Type members

Classlikes

abstract class CollectionResolution[C <: Collection](val collectionName: String) extends WithCollection[C]
import scala.concurrent.Future

import reactivemongo.api.DB

import reactivemongo.api.bson.collection.BSONCollection
import play.modules.reactivemongo.CollectionResolution

class MyComponent extends CollectionResolution[BSONCollection]("collName") {
 def database: Future[DB] = ???
}
final class DefaultReactiveMongoApi(parsedUri: ParsedURIWithDB, dbName: String, strictMode: Boolean, configuration: Configuration, applicationLifecycle: ApplicationLifecycle)(implicit ec: ExecutionContext) extends ReactiveMongoApi

Default implementation of ReactiveMongoApi.

Default implementation of ReactiveMongoApi.

Value parameters:
dbName

the name of the database

object Formatters

Instances of Play Formatter for the ReactiveMongo types.

Instances of Play Formatter for the ReactiveMongo types.

Companion:
class

A mixin for controllers that will provide MongoDB actions.

A mixin for controllers that will provide MongoDB actions.

Companion:
object

Instances of Play PathBindable for the ReactiveMongo types.

Instances of Play PathBindable for the ReactiveMongo types.

MongoDB API

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.

Cake pattern components.

@Singleton
final class ReactiveMongoModule extends Module

MongoDB module.

MongoDB module.

Companion:
object
Companion:
class
@SuppressWarnings(scala.Array.apply[java.lang.String]("NullAssignment")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])))
class ReactiveMongoPluginException(message: String, cause: Throwable) extends RuntimeException
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] = ???
}