Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Classloaders and classes already loaded



Title: Message
 
----- Original Message -----
From: Mark Brown
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
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Classloaders and classes already loaded (From: "Mark Brown" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.