Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
23 lines (20 sloc)
580 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.xsn.explorer.modules | |
import com.google.inject.AbstractModule | |
import com.xsn.explorer.executors.{ | |
DatabaseAkkaExecutionContext, | |
DatabaseExecutionContext, | |
ExternalServiceAkkaExecutionContext, | |
ExternalServiceExecutionContext | |
} | |
class ExecutorsModule extends AbstractModule { | |
override def configure(): Unit = { | |
val _ = ( | |
bind(classOf[ExternalServiceExecutionContext]).to( | |
classOf[ExternalServiceAkkaExecutionContext] | |
), | |
bind(classOf[DatabaseExecutionContext]).to( | |
classOf[DatabaseAkkaExecutionContext] | |
) | |
) | |
} | |
} |