Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Eclipse Plug-in Development

You're reading from   Mastering Eclipse Plug-in Development Build modular applications on Eclipse by defining custom extension points and using OSGi services

Arrow left icon
Product type Paperback
Published in Aug 2014
Publisher
ISBN-13 9781783287796
Length 362 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Bandlem Limited Bandlem Limited
Author Profile Icon Bandlem Limited
Bandlem Limited
Alex Blewitt Alex Blewitt
Author Profile Icon Alex Blewitt
Alex Blewitt
Arrow right icon
View More author details
Toc

Reloading native libraries


When a native library is loaded into the JVM, it can only be loaded from a single bundle at a time. If the bundle is restarted or updated, the existing native library is reused for the new version of the bundle. The reason for this is that the JVM ensures that the fully qualified path of the native library is associated with a single ClassLoader instance. Subsequent loads of the native library will fail.

If the bundle is uninstalled completely, the native library may be subject to unloading. Note that this only occurs when the ClassLoader instance associated with the bundle is garbage collected, which may be some time after the bundle has been stopped.

Note that as discussed earlier in this chapter, the OSGi specification only supports native libraries that have no transitive native dependencies. This restriction is primarily limited to the support in Java for loading such transitive dependencies.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image