users@jersey.java.net

Re: [Jersey] hierarchy of resources ?

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Fri, 01 May 2009 12:01:43 -0400

On May 1, 2009, at 11:50 AM, Felipe Gaścho wrote:

> humm.. from the link:
>
> "If a subclass or implementation method has any JAX-RS annotations
> then all of the annotations on the super class or interface method are
> ignored"
>
> so, I cannot share resources using annotations & generics.. my
> former goal......
>
You can share them but you can't selectively override annotations. If
you add any JAX-RS annotation to a subclass method then Jersey will
ignore all JAX-RS annotations on the overiddden super class method

Marc.