Hi Paulo I think you could inject the ObjectLocator into the FooResource and then ask for the BarResource. You could get away with it, although it doesn't seem very practical. Is the ObjectLocator enough for your scenario or you were expecting some kind of injection into entities like the one in the documentation example using "entityManager.find()"?
Alejandro. On Mon, Jun 4, 2012 at 10:24 PM, Paulo Andrade <pauloandr...@ist.utl.pt> wrote: > Hello, > > I''m using tynamo-resteasy and was wondering if one could use subresources > with it. > (http://docs.jboss.org/resteasy/docs/1.0.0.GA/userguide/html/JAX-RS_Resource_Locators_and_Sub_Resources.html) > > > Basically for a URL like this: > > /foo/1/bar > > I would have a FooResource that would return the BarResource parameterized > with the correct Foo instance (id=1). > > I know I can just call "new BarResource()" in the handler method of the > FooResource class, but that way I loose all the @Inject stuff. > > Is there another way of doing this? > > Best regards, > Paulo Andrade > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org