Article View: borland.public.jbuilder.java.api
Article #2473Re: Classes in the JVM
From: Matt Welsh
Date: Thu, 09 Nov 2000 00:00
Date: Thu, 09 Nov 2000 00:00
32 lines
2023 bytes
2023 bytes
I know that this is possible if you use a custom class loader to load the class. In your classloader you'd simply provide a method that calls the protected ClassLoader method findLoadedClass(String) which returns null of the class was not previously loaded. Of course this approach hangs on your ability to use a custom classloader to do the work, which may not be an option. If you would like to see code for a custom class loader that does this drop me a note and I'll send it to you. -Matt > Hi there people, > I would like to know if an Applet or Application can interogate the JVM > and find out if a particular class/object is loaded into it? > If you need more information then please contact me directly or through > the newsgroup(s). > > -- > Thank you for your time > Anthoni Gardner > Born2Code Software > http://w3.to/born2code -- "I have seen the moment of my greatness flicker, And I have seen the eternal Footman hold my coat," Matt Welsh eMail: matt@matt-welsh.com Personal Page: http://www.matt-welsh.com Java Page: http://www.java-engineer.com
Technical Details
Message-ID:
<3A0AFEEC.22674DFD@matt-welsh.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<PMCO5.88945$hk2.295523@news6-win.server.ntlworld.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113ae9,bf5033e5546c0daa X-Google-Attributes: gid113ae9,public X-Google-Thread: 1089d0,bf5033e5546c0daa X-Google-Attributes: gid1089d0,public X-Google-Thread: 10a146,bf5033e5546c0daa X-Google-Attributes: gid10a146,public X-Google-Thread: f74b3,bf5033e5546c0daa X-Google-Attributes: gidf74b3,public From: Matt Welsh <matt@matt-welsh.com> Subject: Re: Classes in the JVM Date: 2000/11/09 Message-ID: <3A0AFEEC.22674DFD@matt-welsh.com> X-Deja-AN: 691744150 Content-Transfer-Encoding: 7bit References: <PMCO5.88945$hk2.295523@news6-win.server.ntlworld.com> Organization: Randori News Inc. -- http://www.randori.com -- Fast! X-Accept-Language: en Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language,comp.lang.java.help,comp.lang.java.programmer