All Downloads are FREE. Search and download functionalities are using the official Maven repository.

play.modules.reactivemongo.ReactiveMongoModule.scala Maven / Gradle / Ivy

package play.modules.reactivemongo

import javax.inject._

import akka.actor.ActorSystem
import play.api.ApplicationLoader.Context
import play.api._
import play.api.inject.{ ApplicationLifecycle, Binding, Module }

/**
 * MongoDB module.
 */
@Singleton
final class ReactiveMongoModule extends Module {
  override def bindings(environment: Environment, configuration: Configuration): Seq[Binding[_]] = Seq(bind[ReactiveMongoApi].to[DefaultReactiveMongoApi].in[Singleton])

}

/**
 * Cake pattern components.
 */
trait ReactiveMongoComponents {
  def reactiveMongoApi: ReactiveMongoApi
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy