play.modules.reactivemongo
package 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
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
object Formatters
Instances of Play Formatter for the ReactiveMongo types.
Instances of Play Formatter for the ReactiveMongo types.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- Formatters.type
object MongoController
Attributes
- Companion:
- trait
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- MongoController.type
object PathBindables
Instances of Play PathBindable for the ReactiveMongo types.
Instances of Play PathBindable for the ReactiveMongo types.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- PathBindables.type
object PlaySupport
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- PlaySupport.type
trait ReactiveMongoApi
MongoDB API
MongoDB API
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class DefaultReactiveMongoApi
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass 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
- trait BuiltInComponentstrait AkkaTypedComponentstrait AkkaComponentstrait I18nComponentsclass Objecttrait Matchableclass Any
trait ReactiveMongoComponents
Cake pattern components.
Cake pattern components.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
@Singleton
object ReactiveMongoModule
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ReactiveMongoModule.type
Attributes
- Graph
- Supertypes
- class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass 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 Objecttrait Matchableclass Any
- Known subtypes
- class CollectionResolution[C]