----- Original Message -----
Sent: Friday, December 17, 2004 10:59
AM
Subject: Classloaders and classes already
loaded
3.) Is there a way
to ask if a class is loaded, and if so, then create an instance of it, even
though I don't have the class loader?
Sorry, for the
first part of this question. You would have to pass the check to a classloader
to see if it's actually already loaded. Otherwise to find the class loader
from the class you of course first need to already have the class that has in
turn already been loaded somehow.
For a ClassLoader
checking to see if a class is already loaded is part of the normal search
sequence. Should be the first check probably.
Mike
Hall mikehall at spacestar dot
net
http://www.spacestar.net/users/mikehall