On Dec 28, 2010, at 8:00 PM, Richard S. Hall wrote:
Well, resources can be put into packages and shared like classes
via exports...or am I missing something?
In this particular example, it looks like the resource is contained
in the same bundle, so what you are doing is fine since it delegates
to the bundle's class loader (which is a bundle class loader in
this), which does the right thing.
From first reading your email, I thought you were talking about
shared resources...not resources contained in the bundle.
Regardless, resource loading isn't dynamic class loading and doesn't
involve the TCCL, etc. So, this isn't an advanced use case if this
is all you are talking about.
What I'm trying to do is convert an existing app to a single OSGi
bundle and get it to launch that way. Perhaps the length/complexity/
poor explanation of my original email gave you the impression that I
was trying to do something more complex, but that's really all I want
to do.
bjorn
-----------------------------
Bjorn Roche
http://www.xonami.com
Audio Collaboration