about thread's context classloader?
1 posts in topic
Flat View  Flat View

Posted By:   lhp06_lhp06
Posted On:   Tuesday, October 28, 2003 10:59 PM

1> When a thread encounters a new class, which classloader will it use to load the new class? It will use its context classloader?

The java API says:

The context ClassLoader is provided by the creator of the thread for use by code running in this thread when loading classes and resources. If not set, the default is the ClassLoader context of the parent Thread. The context ClassLoader of the primordial thread is typically set to the class loader used to load the application.

who can explains it to me? Thanks in advance!

Re: about thread's context classloader?

Posted By:   Eugene_Kuleshov  
Posted On:   Wednesday, October 29, 2003 01:59 PM

Here is a great article on this topic - Find a way out of the ClassLoader maze.
About | Sitemap | Contact