My top level class (the one that needs all the dependencies injected in to it) is instrumented by a third party library.
I have the following:
bind(Implementation.class).toConstructor();
but this does not work because Implementation is a different Implementation.class at runtime.
What I would like to specify is something like
bind(Interface.class).toConstructor();
which is to say allow anything that implements this interface to be constructed through Silk.
Or I guess it could be anything that has the same fully qualified class name.
What is the best way to implement something like this?
Thanks,
Nick