Dropwizard: Dagger 2

Created on 2 Jun 2016  路  4Comments  路  Source: dropwizard/dropwizard

Is it possible to use Dagger 2 with dropwizard ?

I keep getting org.glassfish.hk2.api.UnsatisfiedDependencyException: There was no object available for injection at SystemInjecteeImpl

This blog post explains how to do it but in their repo dagger 2 isn't even used (DI is done by HK2)

My google-fu has failed to find other examples

Most helpful comment

It is possible, I use it in my applications. Check out https://github.com/RohanNagar/thunder

All 4 comments

It is possible, I use it in my applications. Check out https://github.com/RohanNagar/thunder

Thanks for the link, @RohanNagar. Closing this issue out as it doesn't appear to be an issue with Dropwizard

@RohanNagar But this is only works on constructor injection not on field injection. Can you guide how to do via field injection?

@RohanNagar But when i've to change the version of dropwizard from 1.0.0 to 0.7 it works !! is glassfish depedency doing wrong in versioning?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gogo649 picture gogo649  路  4Comments

jamesalfei picture jamesalfei  路  5Comments

rbjorklin picture rbjorklin  路  5Comments

animesh-sharama picture animesh-sharama  路  6Comments

Gabology picture Gabology  路  6Comments