ObjectWeb Consortium
Search ObjectWeb Mail Archive: 

Advanced Search - Powered by Google

Mail Archive Home | oscar List | March 2006 Index

<--  Date Index  --> <--  Thread Index  -->

Re: [oscar] Oscar & Dynamic Import?

Thanks, Rick.

There isn't much of a tutorial you could have. Dynamic imports defer package resolution until runtime, which means that it is possible for your bundle to get exceptions at runtime if the packages aren't found, so be prepared to catch them in that case.

To add a dynamic import to your bundle, just add an entry to your manifest like:

   DynamicImport-Package: org.foo.*

The OSGi framework will try to find an exporter for any matching packages (i.e., beginning with org.foo) at runtime when your bundle requests them. Once bound to a particular exporter for a particular matching package, you will only see that package until the bundle is refresh, at which time you may be rebound to a different package.

That's about it, I think.

-> richard

Rick Litton wrote:

OSCAR has an excellent support for Dynamic Import (kudos to Richard
;-)).  I have not come across a tutorial yet but the OSGi R3 reference
manual describes the specifications in detail.

-- rick
-----Original Message-----
From: Ence, David [mailto:david.ence@xxxxxxxx] Sent: Wednesday, March 22, 2006 9:55 AM
To: oscar@xxxxxxxxxxxxx
Subject: [oscar] Oscar & Dynamic Import?

Hi All,

Does OSCAR support Dynamic Import? If so, can someone point me to a

Thank you.



You receive this message as a subscriber of the oscar@xxxxxxxxxxxxx mailing 
To unsubscribe: mailto:oscar-unsubscribe@xxxxxxxxxxxxx
For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.