Spacename of a class loader

Question:

Does a class loader stores references for any class loaded by its parents after a request from itself to load a class? In this way the set of classes loaded for a class loader and the returned ones by its parent after a request would comprise the spacename of this class loader.

[315 byte] By [Botella] at [2007-9-26 3:59:06]
# 1

i think so. the class loader if unable to load the class actually asks its parent class loader to load the class (since its a parent delegation model) and thus acts as the initiating class loader for that type. Thus it adds the type name to the list maintained by it. Next time when the type is referenced, it first check this list (its namespace) and and if it finds it, it loads it otherwise it delegates it to its parent.

G.P.

ga11 at 2007-6-29 12:52:44 > top of Java-index,Java HotSpot Virtual Machine,Specifications...