I am using the Equinox OSGi implementation. When I receive the package and request it for my location (getLocation () method), the returned string is prefixed with "start @ link". The OSGi 4.3 specification does not mention this prefix. Is there another document that lists this prefix and other possible prefixes?
These are prefixes for specific Equinox URLs (although this link: the prefix is โโalso supported by other OSGi platforms). They are not part of the OSGi Spec. From the Eclipse Runtime Options:
osgi.bundles , , , , . :
<URL | simple bundle location>[@ [<start-level>] [":start"]]
OSGi, . ( > 0 ) , . "start", . . URL-, , . , : , : URL (, : :/path/to/mybundle_1.0.0.jar). , : URL : (, :/path/to/myDirectoryBundle_1.0.0/ : file:/path/to/myDirectoryBundle_1.0.0/)
- "" "" .
. :
InputStream data = ...; // open a stream from wherever context.installBundle("crazy location huh?", data);
... getLocation() " , ?".
getLocation()
, no-arg Bundle.update(), , . Bundle.update(InputStream) , .
Bundle.update()
Bundle.update(InputStream)