Introduction:
import wvlet.airframe._
import wvlet.airframe.bind._
trait MyService {
def hello: Unit
}
class MyServiceImpl extends MyService {
def hello: Unit = {
println("Hello, Airframe!")
}
}
object Main {
def main(args: Array[String]): Unit = {
val d = newDesign
.bind[MyService].to[MyServiceImpl]
.noLifeCycleLogging
val myService = d.build[MyService]
myService.hello
}
}