Steven E. Harris wrote:
BJ Hargrave <[EMAIL PROTECTED]> writes:
If location string is the same => returns the Bundle object of the
installed bundle, otherwise throw BundleException.
Then in order to accommodate a design like I'm describing, one where
some agent tries to install downloaded bundles without knowing whether
they're already installed, I have to make sure that the location
string is stable among equivalent bundles. I can't, say, download the
bundle to a temporary file (with a randomly constructed name) and try
to install it from there. Is that correct?
I'll take the rest of my related questions to the osgi-dev list.
You can give the bundle any arbitrary location you want and use
installBundle(String, InputStream)...this is what the OBR impl does,
since it doesn't want the location is actually meaningless.
What you need is to check to see if the symbolic name + version is
already installed.
-> richard