注意:在我的情況下,如果這很重要,我將使用Apache Felix實現。 我寫了我正在使用的測試包。這是非常簡單的「Hello World」的捆綁開始時做的無非就是打印消息更stdout /停止: public class Activator implements BundleActivator {
@Override
public void start(BundleCont
我正在使用Apache Felix創建嵌入式OSGi主機應用程序。我正在使用以下代碼來公開我想要公開的軟件包: List<String> extra = new ArrayList<>();
extra.add("some.example.packag.to.expose.1");
extra.add("some.example.packag.to.expose.2");
extra.add