[ANN] Sheath: Dagger Inside

203 views
Skip to first unread message

Thomas Broyer

unread,
Sep 28, 2012, 8:15:30 PM9/28/12
to google-we...@googlegroups.com, Gin
It took me a couple nights and lunch-breaks of hacking, here is:

Sheath: Dagger Inside

Sheath is to Dagger what GIN is to Guice. Except this is only an experiment, a proof of concept. Sheath currently leverages the code generated by Dagger, which is suboptimal in a GWT context.

I didn't implement singletons either; it's just enough to make the example work (with System.out.println replaced with Window.alert, and everything launched at the click of a button).

If anyone's interested in switching from Guice to Dagger, and uses GWT, have a look at it: https://github.com/tbroyer/sheath

(note: I'm sticking with Guice and GIN, there are too many things I miss in Dagger, and I don't really need something more lightweight, as I don't code for resource-constrained environments; but if anyone's interested, feel free to report bugs, fork and/or send pull requests)

Joseph Lust

unread,
Sep 30, 2012, 1:42:21 PM9/30/12
to google-we...@googlegroups.com, Gin
Nice work Thomas! I've been looking for just such a light weight DI replacement. I'll give it a try this weekend.


Sincerely,
Joseph
Reply all
Reply to author
Forward
0 new messages