On Wed, 2007-12-26 at 13:48 +0800, Stuart McCulloch wrote: > On 26/12/2007, David Leangen <[EMAIL PROTECTED]> wrote: > > Hiya, > > Is there a way to import a class into a bundle at runtime when > the > imported class is not declared as imported in the manifest? > > I want to be able to use and work with certain classes without > knowing > what they are at build time. > > have you looked at using DynamicImport-Package? (section 3.8.2 of R4 > spec) > > > you can use wildcards, so you can load classes without knowing the > details in > advance (ie. they are resolved when needed, not when the bundle is > resolved)
Thanks, Stuart. Yeah, I had looked at that section. So, are you saying that the only way to do this is to declare something in the manifest (possibly a wildcard dynamic import)? There's no runtime method for importing a single class at runtime? I didn't notice anything in the api or the spec, but was just wondering if there was some kind of trick somewhere... Thanks! David _______________________________________________ OSGi Developer Mail List [email protected] http://www2.osgi.org/mailman/listinfo/osgi-dev
