Hi,
we discussed this before, and Paul argued for this: For implementation
reasons I propose to put the methods getAncestorResource*() to an own
interface, e.g. Ancestors. Last times I argued against this, because I
don't had in mind, that you now need a new Object creation for every
UriInfo injection. Until now I put the same object for Request,
HttpHeaders, SecurityContext and UriInfo if one of this is requested in
every resource object. Jersey also uses (or only used?) a class which
implements these four interfaces.
For speed reasons it seems useful to me to move the the methods to an
interface like Ancestors with the methods getResources() and
getResourceURIs().
best regards
Stephan