Well, there is the notion of an extension bundle. I've added support for extension bundles up to a point so assuming it works in your case you could use an empty extension bundle that exports the packages that you need. That would make said packages available from the system bundle. Another way to do it might be to use bootdelegation (assuming your bundle doesn't import the packages but still need to get access to the classes). However, I'd prefer the former if possible.
regards, Karl On Mon, Mar 10, 2008 at 9:11 AM, Saminda Abeyruwan <[EMAIL PROTECTED]> wrote: > Hi Devs, > > I've recently asked the question that, if I wanted to add some packages to > system bundle, it should be added to "org.osgi.framework.system.packages" > Felix properties file. One problem I faced recently is that, during system > bundle start my custom auto activator init number of classes, where all the > packages that needed by this initialization needed to be added to prior > property. > > I would like to know is it possible to produce my own classloader "proxy" to > OSGi environment without going through "org.osgi.framework.system.packages". > i.e Is it possible to programmatically add my classloader to OSGi when > system bundle is initiating via Embed Felix. > > Thank you > > Saminda > > -- > Saminda Abeyruwan > > Senior Software Engineer > WSO2 Inc. - www.wso2.org > -- Karl Pauls [EMAIL PROTECTED]