Configuration) extends AbstractModule { override def configure() = { configuration.getString("storage.type") match { case Some(t) if t == "local" => bind(classOf[StorageService]).to(classOf[LocalStorageService]) case Some(t) if t == "s3" => bind(classOf[StorageService]).to(classOf[S3StorageService]) case t => sys.error(s"The storage type is not supported: $t") } } }
parallelism-max = 200 } } } val executionContext = akkaSystem.dispatchers.lookup(“contexts.http”) Future { // Some blocking or expensive code here }(executionContext)