我希望能够轻松启动OSGi框架(最好是Equinox)并从java main加载我的pom中列出的所有bundle.
这可能吗?如果是这样,怎么样?
似乎pax工具会这样做,但我似乎找不到任何指示这样的文档.我知道我可以像这样启动Equinox:
BundleContext context = EclipseStarter.startup( ( new String[] { "-console" } ), null );
Run Code Online (Sandbox Code Playgroud)
但我想做更多 - 就像我说的:加载更多的捆绑包,可能会启动一些服务,等等.