• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application of user defined class loader?

 
Alpesh Padra
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Application of user defined class loader?
 
Bert Bates
author
Sheriff
Posts: 8900
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
interesting topic that's not on the exam, moving this to Java General...
 
Rob Spoor
Sheriff
Pie
Posts: 20661
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there even a question in there? I see some words followed by a question mark, but that doesn't turn it into a proper question. I have no idea what you actually want.
 
Alpesh Padra
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rephrase Question : Can anyone mentioned the application names in which custom class loader is used?

Now its your turn.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15480
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One place where custom class loaders are used is in web application containers. Each web application needs to have a separate classloader, so that its classes can be separated from the classes of other web applications. If all webapps in the container would share the same classloader, it would for example not be possible to for one webapp to load version 1 of a library, and another webapp to load version 2 of the same library. Also, the webapps would be able to see each other's classes, which is not desirable.
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OSGi container where each module requires to have its own classloader.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Custom classloaders could also be used to do various byte code transformations, or compile non-Java source files at load time, or...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic