aspose file tools*
The moose likes Java in General and the fly likes when a  user-defined class loader is required?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "when a  user-defined class loader is required??" Watch "when a  user-defined class loader is required??" New topic

when a user-defined class loader is required??

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
In java based application .JVM will load all possible class when it required, then please explain in which scenario a user-defined class loader should be used in an application??
David Newton

Joined: Sep 29, 2008
Posts: 12617

If you want to modify the byte code at load time. If you want to compile a JVM script language script from the source on load. All sorts of other reasons.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 36590
Class-loaders are hardly a beginner's topic. Moving.
Paul Clapham

Joined: Oct 14, 2005
Posts: 18155

Depends on what you mean by "user-defined".

If you count a URLClassLoader as a "user-defined" classloader, then you might do that to implement a plug-in architecture.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 39577

Ping & DNS - updated with new look and Ping home screen widget
Consider Paul's rocket mass heater.
subject: when a user-defined class loader is required??
Similar Threads
classloaders in a jvm
SRV1.9.7-Please clarify
Call from native thread is not handled by context class loader
Application of user defined class loader?
Advantages of User Defined ClassLoader?