users@jersey.java.net

Re: [Jersey] Injection question - Guice + HttpServletRequest

From: DirkM <dirk_at_olx.com>
Date: Wed, 7 Oct 2009 07:09:41 -0700 (PDT)

Paul Sandoz wrote:
>
> Moises is referring to the Guice Provider interface
>

Aha! Wow that really was easy :) Thanks Paul and Moises.


Paul Sandoz wrote:
>
> Unfortunately it is not possible to mix Jersey-based and Guice-based
> injection with constructors.
>

That's unfortunate. I like List<Locale> HttpHeaders.getAcceptableLanguages()
much more than Enumeration<Locale> HttpServletRequest.getLocales().
Enumerations are so 1995.
-- 
View this message in context: http://n2.nabble.com/Injection-question-Guice-HttpServletRequest-tp3777894p3782049.html
Sent from the Jersey mailing list archive at Nabble.com.