Created
September 4, 2018 00:26
-
-
Save j5ik2o/a473030d0ca01f6434daeed2d3ed4dd5 to your computer and use it in GitHub Desktop.
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
class ApiServer extends HttpApp { | |
protected val design: Design = bind[Design] // ApiServerの外部で定義されているDesginを参照したい | |
.bind[AtomicReference[ActorSystem]] | |
.toInstance(systemReference) | |
.bind[ActorSystem] | |
.toInstanceProvider[AtomicReference[ActorSystem]](_.get) | |
// snip | |
override protected def routes: Route = bind[Routes].route | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
結局、HttpAppは抽象クラスで使いにくかったので利用しないで、traitで書きました。コメントありがとうございました。