dev@jsr311.java.net

Re: JSR311: Issue 18: XML Descriptor

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Mon, 30 Jun 2008 19:07:16 +0200

Hi,

IMO it is good to have them as annotations on the classes and not need
for a centralized data pot.

best regards
   Stephan

Marc Hadley schrieb:
> 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.