This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

when a user-defined class loader is required??  RSS feed

 
jacob deiter
Ranch Hand
Posts: 586
  • 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: 54034
130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class-loaders are hardly a beginner's topic. Moving.
 
Paul Clapham
Sheriff
Posts: 22203
38
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!