Marc Hadley wrote:
> On Jan 8, 2008, at 6:19 AM, Paul Sandoz wrote:
>>
>> I can see a use-case for root resources where by one could add an
>> additional root resource with the same path supporting different media
>> types because one did not want to modify the code of the existing
>> resource. It may sound like a cool thing to do but i am really not
>> sure if this is really useful.
>>
> Exactly, I'm somewhat on the fence at the moment but leaning towards the
> YAGNI bucket for this feature.
>
I extremely disagree. Same Path, different resources, different
MediaTypes is definately needed. You mean to tell me that I'm going to
bloat each resource class to support all the media formats I want? This
just isn't good design guys...
I've already run into this issue in the prototype application I'm
writing which is why I modified my JSR-311 implementation to support
same path, different resources/different media types.
Bill
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com