users@jersey.java.net

[Jersey] Re: Guice and Jersey 2.0

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Tue, 15 May 2012 17:34:35 +0200

Hi,
our current thinking is that we will provide Guice integration via a support from HK2 layer. IOW, the HK2 should implement this integration for us. The feature request has been filed into Jira[1], the task is however not done yet.

Marek

[1] http://java.net/jira/browse/HK2-39

On May 11, 2012, at 10:19 PM, Philippe Laflamme wrote:

> 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