On 06/01/2011 11:37 PM, ext2 wrote:
Hi:
        I am writing a extender program which will listen the bundle start
event; and each bundle will contains a configuration file which describe
some java class of bundle to be launched;
        But when the extender received the bundle start event. Then I have
no idea about how to get the bundle's class loader to loading class by name;
        I check the osgi-specification and haven't find the API to got class
loader from bundle or bundleContext;
        Doest anyone know something  about this ?

If you just want to load a class from a bundle, you can use Bundle.loadClass()...in the R4.3 spec there is a way to get the actual class loader, but Felix doesn't yet support R4.3...

-> richard

        thanks for any suggestion




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to