Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #6663

Re: Detecting if a class is already known

From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: Detecting if a class is already known
Date 2011-07-29 10:44 -0700
Organization A noiseless patient Spider
Message-ID <j0uril$3sm$1@dont-email.me> (permalink)
References <c58b6bca-daa4-4942-b466-768344bf26b1@l7g2000vbz.googlegroups.com>

Show all headers | View raw


On 7/29/2011 9:47 AM, Ross wrote:

> However, I don't want to load classes that already exist


This is already covered by the ClassLoader docs.  You can also search 
for a tutorial how it all works, but basically you overload findClass 
and don't touch the other methods and it all works out.  loadClass 
automatically searches for existing classes first, then only calls 
findClass if it needs too.  IIRC.


>    private boolean known( String className )


<http://download.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html#findLoadedClass%28java.lang.String%29>

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Detecting if a class is already known Ross <rossclement@gmail.com> - 2011-07-29 09:47 -0700
  Re: Detecting if a class is already known markspace <-@.> - 2011-07-29 10:44 -0700
    Re: Detecting if a class is already known Lew <lewbloch@gmail.com> - 2011-08-02 07:51 -0700
  Re: Detecting if a class is already known Arne Vajhøj <arne@vajhoej.dk> - 2011-08-05 22:21 -0400

csiph-web