• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need of Custom ClassLoader  RSS feed

 
Kartik Patel
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What is the need of having custom classloader?
I mean, cna anyone give me scenario where the custom classloader become helpful.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) You are creating classes on-the-fly and loading them.
2) You want to ship encrypted class files, and only decrypt them at runtime.
3) You want to load class files out of the data segment of a *.EXE file.
4) ...
And many more.
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
4) you want to load classes from a Database
5) you want to load classes from network (sockets)
6) you want to inspect bytecode before it is loaded
7) you want to ....
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
8) You have multiple applications running under one JVM (Servlet containers) and want to isolate each from the others.
[ July 28, 2006: Message edited by: Ben Souther ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!