diff options
author | vlad <vlad@drivergrp.com> | 2016-07-16 02:43:54 -0400 |
---|---|---|
committer | vlad <vlad@drivergrp.com> | 2016-07-16 02:43:54 -0400 |
commit | 980deaf70e4e0ba906d0af534aebc839015f0581 (patch) | |
tree | 41730ad413bd7581d0ab54429930e83c48f97fe6 /src/main/scala/com/drivergrp/core/execution.scala | |
parent | c0d574dc6134e4f406875ea5a1301ba46602a6ec (diff) | |
download | driver-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.scala | 28 |
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 - } -} |