开发者

OSGi: choices for Android development

开发者 https://www.devze.com 2023-04-13 04:27 出处:网络
I have an OSGi project I would like to port it to Android, what are my choices beyond Apache Felix? and what are their advantages? has a clear consensus arisen toward a开发者_JAVA技巧 certain system?P

I have an OSGi project I would like to port it to Android, what are my choices beyond Apache Felix? and what are their advantages? has a clear consensus arisen toward a开发者_JAVA技巧 certain system?


Prosyst have an OSGi framework for Android, but it's not free (however it does include loads of extras for Javascript, accessing phone's services, etc).

Otherwise I think you're pretty much on your own, but as the framework API has been standardised you could (easy) write your own basic runner, embedding Felix/Equinox/etc and even allowing the user to decide on the framework to use as part of launch (or using the SPI standard and picking up the FrameworkFactory)


Another option that has recently been developed is to use PojoSR. Although it is not a full OSGi framework, you get all the benefits of using the service registry, without the module layer. Largely depending on what you're actually aiming for when using OSGi in Android, this might be an option.

0

精彩评论

暂无评论...
验证码 换一张
取 消