felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall" <he...@ungoverned.org>
Subject Re: How to find a bundle's classloader in a extender ?
Date Thu, 02 Jun 2011 04:10:26 GMT


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: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message