users@jsr311.java.net

Re: sub resource locators & generating urls

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Tue, 08 Jul 2008 14:18:59 +0200

Hi Jo,
> Another suggestion - what if the sub resource locator returns a class?
> Then the sub resource locator only specifies the resource to use,
> leaving the instantiation to the container?
This was also discussed :-)
A non-root resource class instance typically gets something from the
path, e.g. an id. IMO the sub resource class should have no references
to previous path segments, which is needed in this case. With the
current construction the sub resource locator mathes the id and gives it
to the sub resource class instance, but the sub resource class instance
do not need to now, where it is read from.

best regards
  Stephan