users@jersey.java.net

[Jersey] Guice and Jersey 2.0

From: Philippe Laflamme <philippe.laflamme_at_gmail.com>
Date: Fri, 11 May 2012 16:19:27 -0400

Hi,

I'm aware that Jersey 2.0 is still under heavy development, but we're
considering using it since our project is still in the planning phase.

Another component of our application would be some IoC tool. We use Guice
already so we'd like to use that. I've noticed that the Jersey 2.0 codebase
uses HK2 and that you can actually add HK2 modules directly to a
ResourceConfig.

How would we go about doing something similar with a Guice Module? Or have
the ability to get Guice bindings injected in our Jersey resources?

Thanks,
Philippe