users@jersey.java.net

Re: annotation inheritance from interfaces

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 01 Apr 2008 17:13:47 +0200

Hi Frank,

It is on my to do list to implement this for the 0.7 release on April
18th. Can you wait until then?

Paul.

FSauer_at_dsthealthsolutions.com wrote:
>
>
> I am trying to figure out how to use annotations on a java interface and
> have a implementation without annotations.
> Section 3.5 of the jsr311 states (on page 12 in the 20/3/08 version)
> that annotations on interfaces are inherited and used on a class iff it
> has no annotations of its own.
> Currently Jersey ignores the interface (and logs a warning about it)
>
> Allowing this would be extremely handy for a client side java framework
> with a dynamic proxy - which I wrote, but currently I am forced to put
> the annotations on both the interface
> AND an implementation because I can't figure out how to publish an
> implementation for that interface with the jersey framework on the
> server. Is this possible? How?
> The question is how do we register such an implementation without
> annotations?
>
>
>
> Any help would be appreciated,
>
>
> Thanks,
>
>
> Frank
>
> ------------------------------------------------------------------------
>
> * This e-mail and any attachments are intended only for the individual
> or company to which it is addressed and may contain information which is
> privileged, confidential and prohibited from disclosure or unauthorized
> use under applicable law. If you are not the intended recipient of this
> e-mail, you are hereby notified that any use, dissemination, or copying
> of this e-mail or the information contained in this e-mail is strictly
> prohibited by the sender. If you have received this transmission in
> error, please return the material received to the sender and delete all
> copies from your system. *
>

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109