On Mar 11, 2008, at 9:44 AM, Aditya Athalye wrote:
>
> Is there any other way to specify a custom EntityProvider other than
> the META-INF/services/javax.ws.rs.ext.EntityProvider file? This file
> is present in the jersey.jar, and I do not want to keep updating the
> library every time I write a new entity provider.
>
You can create your own META-INF/services/
javax.ws.rs.ext.EntityProvider file and the contents will be merged
with the one in the Jersey jar.
However, if you are using a recent version of Jersey then you don't
need that file at all, just make sure you annotate your provider class
with @Provider and Jersey will pick it up automatically.
Marc.
---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.