dev@jsr311.java.net

Re: JSR311: Issue 18: XML Descriptor

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Mon, 30 Jun 2008 12:45:06 -0400

On Jun 30, 2008, at 4:59 AM, Stefan Tilkov wrote:
>
>> https://jsr311.dev.java.net/issues/show_bug.cgi?id=18
>>
>> What are folks use cases and requirements (if any) for an XML
>> descriptor in:
>>
>> (a) A non-EE environment
>> (b) An EE environment
>>
>> Do folks think we need something like the EJB metadata-complete
>> facility to make a runtime ignore all JAX-RS annotations ?
>>
>
> I would love to be able to specify the mapping from resources/verbs/
> content types to classes/methods in a central location, as opposed
> to spreading that knowledge all over the place. This excludes the
> mapping of specific message or header parts to parameters, so I
> would not suggest doing a complete XML alternative.
>
The issue with that is that the two are interrelated and I'm not
convinced it makes sense to separate them. E.g. if the Java method has
a parameter annotated with @PathParam then the path template better
use the same template parameter name otherwise it won't work.

Marc.

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