Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

when a user-defined class loader is required??

 
jacob deiter
Ranch Hand
Posts: 583
  • 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
Sheriff
Posts: 48404
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class-loaders are hardly a beginner's topic. Moving.
 
Paul Clapham
Sheriff
Pie
Posts: 20757
30
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
Pie
Posts: 42967
73
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic