Sorry, I was referring to WarpServletContextListener which comes in
warp-servlet, not warp-persist. The point is that you need to either
create an Injector there and pass a reference to Jersey or Jersey needs
to create an Injector and pass a copy to warp-servlet. Either way, you
need to be able to reuse an existing injector instead of assuming that
you are the one creating it (which JerseyGuiceProvider does).
Gili
Dhanji R. Prasanna wrote:
> On Thu, Nov 20, 2008 at 6:55 AM, Gili Tzabari <[EMAIL PROTECTED]> wrote:
>> Sundar,
>>
>> The implementation needs to be a lot more involved than this. My own
>> implementation has the following extra pieces:
>>
>> 1) a ComponentProvider
>> 2) a InjectableProvider
>> 3) a GuiceServlet. You provide an annotation which might be a better
>> idea, but you need to allow users to link to an existing Injector
>> instead of assuming your own code will always create one. For example,
>> if I want to use warp-persist with Jersey integration I need to be able
>> to pass it an existing instance created by warp-persist.
>
> This may be apocryphal, but warp-persist does not create an injector.
> It can be installed from any Guice module.
>
> Dhanji.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---