Hi,

I can't find withInjector on github. I could override getModules() but not 
getStage(). But even so, I still have do add jersey specific things to 
web.xml. With jersey-guice is as simple 
as serve("/rest/*").with(GuiceContainer.class);

Thanks.

On Wednesday, June 5, 2013 6:26:38 PM UTC+1, Moandji Ezana wrote:
>
> > Do I have to declare my modules in web.xml? 
> >
>
> That's no longer the only choice. In beta-6, you can override the 
> ServletContextListener's getModules() method and do it yourself. In rc-1 
> (currently only on github) you can also override withInjector(Injector) to 
> interact with it after its creation.
>
> I added the latter to be able to start Guice-Persist's PersistService.
>
> Mwanji
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to