When you get to that point, you might want to look at the way we do it in 
Equinox.  It would be good to avoid needless containerisms in this area. 
For background...

In Equinox you can install a bundle "by reference" or "by value" and/or 
specify a JAR or a dir.  The standard OSGi way is to install JARs 
by-value.  If you install a bundle directory by-value then the contents fo 
the dir are copied just as JARs are copied.  To install a bundle 
by-reference you just prefix the original URL with "reference:".  So in 
the original example it would be 
        reference:file:bundle/b1
or 
        reference:file:bundle/b1.jar
In both cases the original content is left in place and simply used. 

This is the way Eclipse operates by default.  When you use Eclipse PDE to 
develop bundles they are actually run directly out of your workspace 
without any JARing or copying using reference URLs.

Currently the mechanism we use to implement this in Equinox is not 
extensible so if you wanted to add another technique, it would not be 
totally simple.  It would be interesting to look at how this could be 
done.

Jeff

p.s., I heard a rumour that Knopflerfish has a mechanism in this space but 
am not sure of the details.




"Richard S. Hall" <[EMAIL PROTECTED]> 
09/28/2005 10:40 AM
Please respond to
oscar-dev


To
oscar-dev@incubator.apache.org
cc

Subject
Re: Oscar -> Felix






This is something that I am definitely thinking about. When I get to 
that point, I will probably need to have some discussion on it, so stay 
tuned.

-> richard

Timur Mehrvarz wrote:

> Hi.
>
> One thing I would be very interested in, is the execution of unjared 
> bundles. Something like "install file:bundle/b1" (or "start 
> file:bundle/b1"), where 'b1' would be the name of a folder, 
> containing a complete unjared bundle. It would be plain fantastic, if 
> such a unjared bundle could be executed "in place", e.g. without 
> requiring files to be copied, etc.
>
> Any chance, Felix could support something like this?
>
> Thanks, Timur
>
>
>
>
>

Reply via email to