Hi Folks,

I am in need of an "On Demand" import functionality with the OSGi framework
but not sure if something like this already exists before doing unnecessary
work.


Basically an "On Demand" import would be a combination of a
DynamicImport-Package and an optional Import-Package.


I am developing a JSR-223 web app platform (solvent.com). I need to allow
scripts to dynamically load imported classes without having to somehow make
the bundle that provides the scripting engine to be aware of these imports.
Basically there is an infinite number of possible packages that a script
could need to import so there is no way to specify that using static
manifest files.


What is required for allowing for this kind of import is to add a method
importPackage to the Bundle interface. This method would allow for
specifying an Import-Package header statement that the framework would
attempt to resolve at the time of the invocation of this
method....similarly an "On Demand" exportPackage could be added to the
Bundle interface.


Is there already functionality like this available that I am not aware of?

Regards
Edmond

Reply via email to