ReactiveMongoApiFromContext
play.modules.reactivemongo.ReactiveMongoApiFromContext
abstract class ReactiveMongoApiFromContext(context: Context, val name: String) extends BuiltInComponentsFromContext with ReactiveMongoApiComponents
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