I have looked at JAX-RS (and I know that it makes heavy use of annotations), but this was not about JAX-RS. My comment was specifically about the proposed use of a method-naming convention to convey meta-information in Restlet where it seems to me that an annotation-based approach would be better.
Don't get me wrong: I very much like the simplicity of Restlet as it is, and I am not pushing for greater use of annotations in general. It's just that this particular feature seems like a mistake as it stands. --tim On Mon, Jan 26, 2009 at 3:50 PM, Stephan Koops <[email protected]> wrote: > Hi Tim, > > I didn't follow the ful discussion, but did you take a look to JAX-RS? > > best regards > Stephan > > Tim Peierls schrieb: > > > > So, if we are back using runtime annotations, there is no > > particular type safety in play: > > > > Representation representXml(); > > > > would be as good (and even more compact) as: > > > > @Variant("xml") > > Representation toXml(); > > > > or if you want to be more explicit about the mediatype: > > > > @Variant("text/xml") > > Representation toXml(); > > > > > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1055994 > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1056391

