users@jsr311.java.net

Re: UriInfo.getAncestorResources

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Wed, 18 Jun 2008 15:59:46 +0200

Hi Sergey, hi Marc,
> I don't understand the purpose of UriInfo.getAncestorResources().
> In other words, it seems like that the returned list can have a
> maximum size of 1, given that
> according the spec only classes created by the JAX-RS runtime can be
> injected with @Context annotated values, such as
> UriInfo instance.
This method returns the resource class instances. If you used sub
resource locators, the list could be longer.

Marc, you should change the example (especially the last paragraph), and
including a sub resource class.

best regards
   Stephan