On Tuesday, June 11, 2013 8:49:13 PM UTC+2, Moandji Ezana wrote: > > > On Tue, Jun 11, 2013 at 2:47 PM, Thomas Broyer <[email protected]<javascript:> > > wrote: > >> Am I missing something or each and every resource or provider has to be >> explicitly bound in the Guice Module? >> > > No, you aren't missing anything. It doesn't seem very different from the > standard JAX-RS system, where an Application instance provides resources > and providers. > > >> Couldn't it intercept each and every resource or provider creation >> instead? (looks like what the CDI integration is doing, and what Ross >> Judson is describing below) >> > > If it obsoletes declaring Resources and Providers manually and plays well > with a manual Guice Module, it could be interesting. Ross, could you go > into a bit more detail about how your implementation works? I've looked at > the CDI integration briefly and will look at it some more. Bill Burke has > declared that he wants to put out the final release in a week, and I can't > guarantee that I'll have time to work on this within such a short time > frame. > > One question I do have is, if Providers are automatically registered, how > do you exclude the ones that are on the classpath, but that you don't > actually want? >
Just to make things clearer: what I want is to be able to @Inject dependencies (*services*) into my resources and providers that are *provided * by my Application (or classpath scanning). See § 10.2.7 of JAX-RS 2.0 (JSR 339) I don't want/need to use Guice bindings to provide resources/providers (which is actually what you do here, and what seems to be done by resteasy-spring too), though I wouldn't mind if it were done *in addition* to the above. Also, in case it changes anything, I'm not running in a servlet container (I'm using resteasy-netty). -- 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.
