Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » difference between DefaultClassLoader and ContextFinder
difference between DefaultClassLoader and ContextFinder [message #84502] Wed, 21 March 2007 02:53 Go to next message
Simon Chen is currently offline Simon ChenFriend
Messages: 10
Registered: July 2009
Junior Member
Hi everyone,
how is a thread's ContextClassLoader set? I've noticed that for some
thread, it's org.eclipse.core.runtime.internal.adaptor.ContextFinder.
and for others it's
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader. In what
condition is a thread's context classloader set to
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader? Thanks
Simon Chen
Re: difference between DefaultClassLoader and ContextFinder [message #84513 is a reply to message #84502] Wed, 21 March 2007 03:15 Go to previous message
Simon Kaegi is currently offline Simon KaegiFriend
Messages: 381
Registered: July 2009
Senior Member
Unless some other code is setting it with something like
currentThread.setContextClassLoader(this.getClass().getClass Loader()), it
should always be ContextFinder.

There's more detail on the ContextFinder and Context Class Loading in
general here --
http://wiki.eclipse.org/index.php/Context_Class_Loader_Enhan cements

-Simon

"Simon" <kungfubuda@gmail.com> wrote in message
news:etq6mt$3gs$1@utils.eclipse.org...
> Hi everyone,
> how is a thread's ContextClassLoader set? I've noticed that for some
> thread, it's org.eclipse.core.runtime.internal.adaptor.ContextFinder. and
> for others it's org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.
> In what condition is a thread's context classloader set to
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader? Thanks
> Simon Chen
Previous Topic:other web-inf stuff
Next Topic:Re: how to deploy an Equinox app?
Goto Forum:
  


Current Time: Fri Apr 19 15:13:25 GMT 2024

Powered by FUDForum. Page generated in 0.02276 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top