我有三个OSGi捆绑包,实现类的名称相同,但在不同的捆绑包中:
Bundle A (com.adobe) ---- Interface ( foo() )
Bundle B (org.custom) ---- ChildClassA ( foo() {} )
Bundle C (myprj.adobe) ---- ChildClassA ( foo() {} )
我有以下代码片段:
Interface refObj;
refObj.foo();
我怎样才能从另一个包中注入特定实现类的对象。
谢谢。