开发者

Reading MANIFEST.MF file from a fragment in OSGi

开发者 https://www.devze.com 2023-01-23 02:00 出处:网络
Is there a standard way of reading MANIFEST.MF key-value pairs from a fr开发者_运维问答agment in OSGi? Each fragment is represented in the OSGi framework with a Bundle object. If you call BundleContex

Is there a standard way of reading MANIFEST.MF key-value pairs from a fr开发者_运维问答agment in OSGi?


Each fragment is represented in the OSGi framework with a Bundle object. If you call BundleContext.getBundles() the returned list will include both fragment, and non fragment bundle. If you search through the array to find the fragment you are interested in you can call the Bundle.getHeaders() method which will return a Hashtable containing the name value paris.

0

精彩评论

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

关注公众号