mesosphere / chaos

A lightweight framework for writing REST services in Scala.
Apache License 2.0
249 stars 36 forks source link

Fixes #64 - wires Rest, Http, Metric modules through MacWire. Cake Pattern version with traits. #69

Closed lxwbr closed 7 years ago

lxwbr commented 8 years ago

@aquamatthias @gkleiman @meichstedt here is the cake pattern version with modules as traits.

I kind of dig it, but am open to both versions. Stating dependencies explicitly through class arguments has its advantage in terms of readability. But I like the way you can mix in the modules as a one-liner via traits (see ChaosModule.scala)

What do you guys think?