square/dagger — pull request #37 by tbroyer (2012-10-02 00:18:13+00:00)
Title: Code generation for static injection.

Still no unit-tests sorry; waiting for @cgruber's work.

Did manual testing: changed `Pump pump` to `static` in `CoffeeMaker`, adding `CoffeeMaker` as `staticInjections` in `DropCoffeeModule` and calling `objectGraph.injectStatics()` in `CoffeeApp`. I set a breakpoint in the generated code to verify it was called. And I added `CoffeeMaker` as a`staticInjections` in `PumpModule` too to check that trying to generate the file twice was correctly handled. And of course the reflection-based unit-tests still pass.