dev@jersey.java.net

Re: Resource model

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Tue, 25 Sep 2007 15:24:46 -0400

On Sep 25, 2007, at 2:35 PM, Doug Kohlert wrote:
> I am working on a Resource model that can be used at tool time and
> runtime to model a resource.
> How tightly coupled should I make this to the jersey classes? For
> example, should I be storing
> a String[] or a MediaTypeList?

We may want to add the Resource model to the JSR 311 API so we can
support annotation-challenged environments. With that in mind I think
you should steer clear of internal Jersey classes where possible but
feel free to use any JSR 311 classes/interfaces. E.g. the above could
be MediaType[] or List<MediaType> but not MediaTypeList.

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.