Dropwizard can't handle guice injections in the dependent jars

83 views
Skip to first unread message

Rohit Nigam

unread,
Oct 18, 2013, 7:46:44 PM10/18/13
to google...@googlegroups.com
Hi
I am using dropwizard and it is not able to handle the injections in the dependent jars. For example in my module i have stated  another module which is present in  another jar and in that module i have done a binding of a interface to the implementing class . In this class constructor i am using injection to instantiate the class from an interface and it fails  with an error that "No Implementation for that Interface was bound"

Main Module m1

is referring to M2 Module class

  install(new M2Module);

In M2Module class (different jar file )  i have  a bind


bind(C1.class).toProvider(
C1Implementor.class).in(Scopes.SINGLETON);

Inside C1Implementor class constructor

@Inject
  public C1Implementor (final C3 config,..)

it fails with "No Implementation for  C3 was bound"

Any ideas how do i resolve this error. Thanks in advance.

Rohit

Vivek Kothari

unread,
Oct 30, 2015, 1:47:13 AM10/30/15
to google-guice
I am facing the same issue.. did you find any solution for the same?

Nate Bauernfeind

unread,
Apr 20, 2016, 7:06:02 AM4/20/16
to google-guice
Can you provide a reproduceable use case? Include version of dropwizard.

--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-guice...@googlegroups.com.
To post to this group, send email to google...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-guice.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/fa913c4d-4bc4-417e-a79a-12f1e8991cb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages