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

Overview of ClassLoaders


One of JVM's biggest contributions to runtime loading has been the ClassLoader design and infrastructure. This allows a JVM to load the bytecode from arbitrary locations or even generate them on demand. It was this infrastructure that enabled Applets and Remote Method Invocation (RMI)—two key technologies that propelled Java toward enterprise use in the late 1990s.

The purpose of a ClassLoader is to take a class name (such as com.example.Test) and return an instantiated Class object. This typically involves translating the name to some kind of file reference (such as com/example/Test.class), loading the content of that file, and passing it to the JVM to define a Class. ClassLoaders can also be used to synthesize classes on demand or even weave additional data to the classes at load time.

The most common ClassLoader used in Java is the URLClassLoader. This takes an array of URLs that either point to JARs or directory roots, and when a class is requested, it iterates...

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