File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Application of user defined class loader? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Application of user defined class loader?" Watch "Application of user defined class loader?" New topic

Application of user defined class loader?

Alpesh Padra
Ranch Hand

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

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

Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Rob Spoor

Joined: Oct 27, 2005
Posts: 20276

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.

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
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15093

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 8 API documentation
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

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:
subject: Application of user defined class loader?
It's not a secret anymore!