aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/com/drivergrp/core/execution.scala
diff options
context:
space:
mode:
authorvlad <vlad@drivergrp.com>2016-07-16 02:43:54 -0400
committervlad <vlad@drivergrp.com>2016-07-16 02:43:54 -0400
commit980deaf70e4e0ba906d0af534aebc839015f0581 (patch)
tree41730ad413bd7581d0ab54429930e83c48f97fe6 /src/main/scala/com/drivergrp/core/execution.scala
parentc0d574dc6134e4f406875ea5a1301ba46602a6ec (diff)
downloaddriver-core-980deaf70e4e0ba906d0af534aebc839015f0581.tar.gz
driver-core-980deaf70e4e0ba906d0af534aebc839015f0581.tar.bz2
driver-core-980deaf70e4e0ba906d0af534aebc839015f0581.zip
Dependency injection through constructor parameters + bug fixes
Diffstat (limited to 'src/main/scala/com/drivergrp/core/execution.scala')
-rw-r--r--src/main/scala/com/drivergrp/core/execution.scala28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/main/scala/com/drivergrp/core/execution.scala b/src/main/scala/com/drivergrp/core/execution.scala
deleted file mode 100644
index 7274f00..0000000
--- a/src/main/scala/com/drivergrp/core/execution.scala
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.drivergrp.core
-
-
-object execution {
-
- import scala.concurrent.ExecutionContext
- import java.util.concurrent.Executors
- import akka.actor.ActorSystem
-
-
- trait ExecutionContextModule {
-
- def executionContext: ExecutionContext
- }
-
- trait FixedThreadsExecutionContext extends ExecutionContextModule {
-
- def threadsNumber: Int
-
- val executionContext: ExecutionContext =
- ExecutionContext.fromExecutor(Executors.newFixedThreadPool(threadsNumber))
- }
-
- trait ActorSystemModule {
-
- def actorSystem: ActorSystem
- }
-}