I have an application that uses Resteasy in both client and server modes, 
in the same application. It's all tied together using Guice for DI.

REST servers are dynamically created and torn down during execution. 
They're netty-based, and are set up through APIs.

I tie Guice to Resteasy client by subclassing ResteasyProviderFactory, then 
diverting appropriate provisioning requests through Guice. Resteasy looks 
for the factory through the standard JAX-RS mechanism 
(META-inf/services/javax.ws.rs.ext.RuntimeDelegate), which ties in my 
custom ProviderFactory.

There's no web.xml file anywhere in all of this.

On Thursday, June 6, 2013 6:44:50 AM UTC-4, Moandji Ezana wrote:
>
> Instead of a few lines in web.xml, they have a bunch of code copied from 
> Resteasy internals. I don't think that's an improvement.
>
> Why is it so important to not have any web framework config in web.xml, 
> but it's OK to have DI config in there?
>
> 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