play.modules.reactivemongo

Members list

Concise view

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] = ???
}

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
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.

Attributes

dbName

the name of the database

Graph
Supertypes
class Object
trait Matchable
class Any
object Formatters

Instances of Play Formatter for the ReactiveMongo types.

Instances of Play Formatter for the ReactiveMongo types.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

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

Instances of Play PathBindable for the ReactiveMongo types.

Instances of Play PathBindable for the ReactiveMongo types.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

MongoDB API

MongoDB API

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
abstract class ReactiveMongoApiFromContext(context: Context, val name: String) extends BuiltInComponentsFromContext with ReactiveMongoApiComponents

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]
}

Attributes

Graph
Supertypes

Cake pattern components.

Cake pattern components.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
@Singleton
final class ReactiveMongoModule extends Module

MongoDB module.

MongoDB module.

Attributes

Companion:
object
Graph
Supertypes
class Module
class Object
trait Matchable
class Any

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class ReactiveMongoPluginException(message: String, cause: Throwable) extends RuntimeException

Attributes

Graph
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
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] = ???
}

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes