Hi Christopher,
It is using a new feature i recently added to 1.3-SNAPSHOT in response
to emails with Johannes.
You can extend from JerseyServletModule:
https://jersey.dev.java.net/nonav/apidocs/1.3-SNAPSHOT/contribs/jersey-guice/com/sun/jersey/guice/JerseyServletModule.html
instead of ServletModule to get that support, as the is done here:
http://fisheye4.atlassian.com/browse/jersey/trunk/jersey/contribs/jersey-guice/src/test/java/com/sun/jersey/guice/ProvidesTest.java?r=HEAD#l70
Paul.
On Jun 7, 2010, at 10:31 PM, Christopher Piggott wrote:
> I'm curious, in the first link (ProvidesTest.java) the resource class
> gets its SecurityContext, UriInfo, etc. via @Inject (presumably guice)
> rather than @Context (from jersey). Does something special have to
> happen to make this work?
>
>
> On Mon, Jun 7, 2010 at 3:19 AM, Paul Sandoz <Paul.Sandoz_at_sun.com>
> wrote:
>> http://fisheye4.atlassian.com/browse/jersey/trunk/jersey/contribs/jersey-guice/src/test/java/com/sun/jersey/guice/AbstractGuiceGrizzlyTest.java?r=HEAD
>>
>> http://fisheye4.atlassian.com/browse/jersey/trunk/jersey/contribs/jersey-guice/src/test/java/com/sun/jersey/guice/ProvidesTest.java?r=HEAD
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>