• Post Reply Bookmark Topic Watch Topic
  • New Topic

when a user-defined class loader is required??

 
jacob deiter
Ranch Hand
Posts: 585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Posts: 53147
124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class-loaders are hardly a beginner's topic. Moving.
 
Paul Clapham
Sheriff
Posts: 21972
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42970
73
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!