Re: Multiple implementations

2015-09-02 Thread Stephan Classen
No, I this is not possible. The injector injects the same class independent of the target. This means if there are no additional annotations it will always inject either A1 or A2 (depends on the configuration in the module) for IA. The same holds for the Bs. Am 2. September 2015 14:33:57 MESZ,

Multiple implementations

2015-09-02 Thread jh24
Hi, Suppose the following classes/interfaces are given: interface IA { } public final class A implements IA { IB b; @Inject public A(IB b) { this.b = b; } } public final class A2 implements IA { } interface IB { } public final class B implements IB { IA a; @Inject public B(I