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