You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created the above example repo to test Guice to HK2 bridge in which I can confirm that HK2 ServiceLocator indeed gets the instances from Guice. However I have two problems:
Injectee.parent == null therefore resolution immediately fails at this line.
I make it pass with assigning a bogus value during debug, however the Lookup Key is ServiceImpl (concrete class) and not Service (interface) therefore only the following succeeds which is not exactly what I want:
// This succeeds
Service service = InjectionManagerProvider.getInjectionManager(context)
.getInstance(ServiceImpl.class);
// This fails
Service service = InjectionManagerProvider.getInjectionManager(context)
.getInstance(ServiceImpl.class);
@jwells131313 Sorry for pinging you directly on this, but could you please take a look at this and tell if it is an issue on my side or on the bridge?
The text was updated successfully, but these errors were encountered:
https://github.com/Akaame/jersey2-guice-example-with-test
I have created the above example repo to test Guice to HK2 bridge in which I can confirm that HK2 ServiceLocator indeed gets the instances from Guice. However I have two problems:
@jwells131313 Sorry for pinging you directly on this, but could you please take a look at this and tell if it is an issue on my side or on the bridge?
The text was updated successfully, but these errors were encountered: