天天看点

java bundle方法_java – bundle.getLocation()的可能前缀

这些是Equinox特定的URL前缀(尽管其他OSGi框架也支持引用:前缀).它们不是OSGi规范的一部分.从Eclipse运行时选项:

osgi.bundles

The comma-separated list of bundles which are automatically installed and optionally started once the system is up and running. Each entry is of the form:

[@ [] [":start"]]

The start-level indicates the OSGi start level at which the bundle should run. If the start-level (>0 integer) is omitted then the framework will use the default start level for the bundle. If the “start” tag is added then the bundle will be marked as started after being installed. Simple bundle locations are interepreted as relative to the framework’s parent directory. If the location is not a fully qualified path or URL then a search is done to find the highest version available. Note that the reference: protocol can only be used to refer to content specified by a file: URL (e.g. reference:file:/path/to/mybundle_1.0.0.jar). If the bundle is a directory bundle then using a file: URL without the use of reference: is not supported (e.g. file:/path/to/myDirectoryBundle_1.0.0/ must use reference:file:/path/to/myDirectoryBundle_1.0.0/)

here是描述“初始”和“参考”前缀的线程.