[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[equinox-dev] help understanding osgi.parentClassLoader
- From: nebulae <shravan.mishra@xxxxxxxxx>
- Date: Sun, 1 Jun 2008 23:36:04 -0400
- Delivered-to: email@example.com
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=mlmVZ6q+2zmtZOlhBt92rRIdPyfqlVDb4yS8lqabTpseHg9fmA/gXSYegnSvtogf1S7XGLMNMA1g519oY+PE9c/mFubTXwIOMhayvjNnhHKvAQ+LmuzYVDjUU9iwST5dF9LkT4AxAzuLFWvpvh818zb0G0BW01C1pkvbnwLt8Us=
I'm new to OSGI so please bear with me if they are basically naive questions.
I'm using Equinox's latest version, I've gone through the mailing
lists and OSGI's core manual especailly the Module layer section and
found lots of very important information.
Under Eclipse's runtime options there is
the classloader type to use as the parent classloader for all
bundles installed in the Framework. The valid types are the following:
* app - the application classloader.
* boot - the boot classloader.
* ext - the extension classloader.
* fwk - the framework classloader.
So my questions are -
How do you decide which type to use as your parent class loader (pcl) ?
Basically these 4 types of classloaders load classes from different
classpaths (boot and system), right?
What does it mean to be an extension classloader? In the spec it says
the extension bundles are fragments (framework or bootclasspath) but
fragments don't have their classloaders.
System.bundle is the framework bundle which exports packages through
pcl using org.osgi.framework.system.packages then why there is
specific fwk type?
If all the classes starting with java and the one's specified by
org.osgi.framework.bootdelegation are to be loaded by pcl then what is
what does app mean, which classloader is this referring to?
I was having some classloading issues with xerces parser and when I
switched to app it suddenly worked, I really want to understand what
Clarifications of the above questions will be very much appreciated.