|
|
|
Re: How to disable Equinox from caching my bundle? [message #76155 is a reply to message #75763] |
Wed, 01 November 2006 14:49  |
Eclipse User |
|
|
|
Shean-Guang Chang wrote:
> If I am using the input stream API but with special location (e.g.
> "reference:XXXX") will that work?
>
To use the InputStream API
BundleContext.installBundle(String, InputStream)
You must use the InputStream from a reference URL. From my previous
example ...
BundleContext context = getBundleContext();
URL reference = new URL("reference:file:/mybundles/bundleA.jar");
Bundle bundleA =
context.installBundle("bundleA", reference.openStream());
Notice the reference.openStream() call. This opens a special
inputstream from the reference ULR that the framework understands as a
reference location. There is no other way to do this. Any other type
of InputSteam the Framework will use the read bundle content from and
cache into its own local cache. There is no way for the Framework to
understand that the InputStream can be referenced.
Tom
|
|
|
Powered by
FUDForum. Page generated in 0.03715 seconds