Hi all!
I am currently trying to refactor a project that is still in an early
phase of development to use Guice. The problem i am facing and for
which i havent found any solution searching this group is:
I need to inject implementations of interfaces, depending on the
concrete class these interfaces are members of.
For example:
public abstract class A {
@Inject("impl dependent on the A's subtype")
private IMyInterface myInterface;
}
I have several classes derived from A, depending on this very subclass
of A, i need to chose which implementation
of IMyInterface to choose for injection.
Is there any way to this with Guice?
Best regards,
--qu
--
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en.