It's not a secret anymore!
The moose likes Java in General and the fly likes Application of user defined class loader? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Application of user defined class loader?" Watch "Application of user defined class loader?" New topic
Author

Application of user defined class loader?

Alpesh Padra
Ranch Hand

Joined: Jan 10, 2010
Posts: 41
Application of user defined class loader?
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8712
interesting topic that's not on the exam, moving this to Java General...


Eliminate fossil fuel subsidies. (If you're not on the edge, you're taking up too much room.)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

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.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Alpesh Padra
Ranch Hand

Joined: Jan 10, 2010
Posts: 41
Rephrase Question : Can anyone mentioned the application names in which custom class loader is used?

Now its your turn.
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12907
    
    3

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.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

OSGi container where each module requires to have its own classloader.


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Custom classloaders could also be used to do various byte code transformations, or compile non-Java source files at load time, or...
 
I agree. Here's the link: http://jrebel.com/download
 
subject: Application of user defined class loader?
 
Similar Threads
libraries in WS5.0
classloaders in a jvm
libraries from websphere 5.0
Class Loaders in Java ?
when a user-defined class loader is required??