That is Equinox-specific...we had talked briefly about allowing a class
loader to be passed into the Felix constructor for delegation purposes,
but didn't really have a compelling reason to do so.
Anyhow, Felix doesn't separate the framework classes from the
application class loader, like Equinox does. So, if you want to expose
everything on the class path to your bundles, then I am pretty sure it
is sufficient to just set boot delegation to "*".
I do not really understand your comment about using the extender model
instead of the service model and therefore isolation is not necessary.
Use of the extender model is orthogonal to isolation. It is probably
still better to set the framework system packages property to explicitly
list the packages to expose from the class path, that way your bundles
can explicitly import them so you know their dependencies. The system
packages list only needs to be maintained in a single place in the
framework for all bundles and most bundle development tools will
automatically calculate your bundle imports, so you don't have to do
anything there...
-> richard
Matt Clark wrote:
Hi all,
Does Felix support the property osgi.parentClassLoader, or is that an
Equinox-specific configuration setting? I am embedding Felix in a webapp to
register extensions to our application, and would like to be able to use the
'fwk' setting to expose all packages known by the classloader that loaded
the Felix framework to bundles. I've read that this could also be done
through extension bundles, but 1) I've read about some recent bugs with
those (http://www.mail-archive.com/[EMAIL PROTECTED]/msg01283.html), and
2) the thought of having to maintain a list of all packages which we would
like to be available to the bundles scares me.
FWIW, our use case is pretty simple. We would like to be able to hot-deploy
extensions (classes and resources) to our application, and these will all
follow the 'extender' model rather than the 'service' model. As such, I
really don't care about the bundles being isolated from the classpath.
Any help is appreciated :-)
Thanks,
Matt Clark
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]