Paul Sandoz wrote:
>
> Alternatively in Guice is there functionality to add a general post
> create listener to some Guice context that can set the field on the
> instance of the specific class?
>
> Paul.
>
In Guice I can just inject UriInfo into the constructor, along with the
other injected instances. The problem is that in production builds
(non-test) Guice knows how to inject some objects, Jersey the other, and
they can't tell each other.
Ideally we want this solution:
http://groups.google.com/group/google-guice/browse_thread/thread/649f1a24c62a2bae
Unfortunately it's planned for Guice 2.1 and we have no idea when that will
be.
Gili
--
View this message in context: http://n2.nabble.com/Unit-tests-and-UriInfo-tp1378335p1383195.html
Sent from the Jersey mailing list archive at Nabble.com.