Skip to content

Instantly share code, notes, and snippets.

@xerial
Last active June 12, 2017 19:30
Show Gist options
  • Save xerial/376a18741ffedb21520935bbdebc3730 to your computer and use it in GitHub Desktop.
Save xerial/376a18741ffedb21520935bbdebc3730 to your computer and use it in GitHub Desktop.
class MyServic(d1:D1, d2:D2, d3:D3, ...)
val d1 = new D1(....)
val d2 = new D2(....)
val d3 = new D3(....)
val service = new MyService(d1, d2, d3, ...)
trait MyService {
val d1 = bind[D1]
val d2 = bind[D2]
val d3 = bind[D3]
}
val session = design.session
session.build[MyService]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment