Possible prefixes for bundle.getLocation ()

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?

+3
source share
2 answers

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/)

- "" "" .

+2

. :

InputStream data = ...; // open a stream from wherever
context.installBundle("crazy location huh?", data);

... getLocation() " , ?".

, no-arg Bundle.update(), , . Bundle.update(InputStream) , .

+6

All Articles