On 18.11.2010 14:45, Alexander Shutyaev wrote:
> I have a question about what happens to class instances when bundle
> containing the class unloads. 

Pretty much nothing: just because a bundle was unloaded does not mean
that the class will be force-wiped from memory. A class (and its
classloader) will only be GC'ed when all its instances can be/have been
GC'ed. AFAIR the framework will also not pull down/reestablish the
wiring between packages/bundles unless it is refreshed.

-h
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to