felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@apache.org>
Subject Re: Safe to retain references to OSGi bundles?
Date Thu, 18 Apr 2013 13:47:02 GMT
On Thu, Apr 18, 2013 at 3:24 PM, Robert Munteanu <rmuntean@adobe.com> wrote:
> ...The reason I need to hold on to the bundle is to load classes using that its classloader
> at a later point in time...

Can't you do that using getClass().getClassLoader() on a class that's
inside that bundle?

I *think* keeping references to Bundle objects is fine if you track
them with a BundleTracker, but that sounds somewhat complicated.


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

View raw message