users@jersey.java.net

Re: annotation inheritance from interfaces

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 03 Apr 2008 18:51:57 +0200

FSauer_at_dsthealthsolutions.com wrote:
>
> Excellent, thank you!
>

Fixed in the trunk. Please note that such JAX-RS annotation inheritance
only applies to methods.

Paul.

> Frank
>
>
>
> *Paul Sandoz <Paul.Sandoz_at_Sun.COM>*
> Sent by: Paul.Sandoz_at_Sun.COM
>
> 04/01/2008 10:14 AM
> Please respond to
> users_at_jersey.dev.java.net
>
>
>
> To
> users_at_jersey.dev.java.net
> cc
>
> Subject
> Re: annotation inheritance from interfaces
>
>
>
>
>
>
>
>
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>

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