Status: New
Owner: ----
New issue 778 by [email protected]: RFE: Ability to delegate
injection for unknown types
http://code.google.com/p/google-guice/issues/detail?id=778
Use-case: Jersey 2.0 depends on HK2 (an implementation of JSR330). In order
to integrate Guice into Jersey 2.0 I am building a Guice-HK2 bridge whereby
HK2 delegate to Guice for unknown types and Guice delegates to HK2 for
unknown types (with a mechanism to prevent endless loops).
HK2 already has a mechanism to defer injection to Guice, but Guice does not
provide a mechanism to defer injection to HK2. I tried using TypeListener
and asking for help on the mailing list but there doesn't seem to be a way
to implement this as of Guice 3.0.
When trying to inject the following:
@javax.inject.Inject
public DepartmentsResource(com.google.inject.Injector injector,
javax.ws.rs.core.UriInfo uriInfo)
Guice understands @Inject, Injector but not UriInfo. It never invokes the
TypeListener for DepartmentsResource or UriInfo, so I don't have the chance
to register a MembersInjector to delegate injection to HK2.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/groups/opt_out.