Hi,
Using Guice 2.0 I am able to @Inject top-level Jersey components whose
constructor refer to UriInfo, however when I try using AssistedInject
for constructors referring to UriInfo I get this error:
No implementation for javax.ws.rs.core.UriInfo was bound.
JerseyServletModule defines the following bindings:
@Provides
@RequestScoped
public UriInfo uriInfo(WebApplication wa) {
return wa.getThreadLocalHttpContext().getUriInfo();
}
@Provides
public WebApplication webApp(GuiceContainer guiceContainer) {
return guiceContainer.getWebApplication();
}
Why would the two injection types differ? Any ideas?
Thanks,
Gili
--
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en.