users@jsr311.java.net

Re: Annotations on interfaces and super classes <was> Re: URI Contracts

From: Bill Burke <bburke_at_redhat.com>
Date: Tue, 10 Jun 2008 11:49:10 -0400

Paul Sandoz wrote:
> Stephan Koops wrote:
>> After reading the arguments of Bill: What is the need to place the
>> annotations on the implemented interfaces or superclasses, and not on
>> the implementing class?
>
> I asked myself the same question :-) I would like to better understand
> what is driving this use case.
>
>
>> Could we remove the look on interfaces / super classes?
>>
>
> That would be my preference as well.
>

You'll have to elaborate on your concerns. Modeling services with
inheritance and interfaces is pretty much ubiquitous with any Java
component model and users will be scratching their heads if it is not
supported in the specification. I know I have found both subclassing
and interfaces extremely useful in the few things I have done with JAX-RS.

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com