Non-osgi library usage in an osgi application

后端 未结 4 1989
日久生厌
日久生厌 2020-12-29 09:26

Is it possible to use a non-osgi library with an OSGi application?

For an example, I\'m developing a semantic based search engine, and I am using a third party Natur

4条回答
  •  再見小時候
    2020-12-29 10:13

    Yes, it is possible. You have two options:

    Firstly, you can include all packages from external library into private-package section of your bundle. It will include all this packages into jar with your application. The second option is to make a valid osgi bundle from external library.

提交回复
热议问题