square/retrofit — pull request #38 by swankjesse (2012-06-28 19:40:12+00:00)
Title: Make RestAdapter work with JSR-330 injectors other than Guice.

It still depends on Guice and works on Guice. But this baby step
will make it easier to use RestAdapter on another injector.

I need to use caution when committing this change! The old
code relied on optional injection for HttpProfiler. Optional injection
is a Guice-proprietary feature that won't be available in the new
injector. To work around this we must add this binding to the
apps using RestAdapter:
bind(HttpProfiler.class).toInstance(HttpProfiler.NONE);