Re: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z)

2002-05-06 Thread Peter Levart
On Sunday 05 May 2002 18:56, you wrote: > Give me some time and I'll try to write a surogate Clazz.forName(className, > classLoader) method that would take into account all possible types > (including primitives and their arrays) as suggested by Dr. Christoph Jung. Ok, here it is. I attached it t

Re: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z)

2002-05-05 Thread Peter Levart
On Friday 03 May 2002 06:24, Dain Sundstrom wrote: > In org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory I > have a method (convertToJavaClass) that does the name to array class > conversion. Here is the core: > > int arraySize = 0; > while(name.endsWith("[]")) { > name = name

Re: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z)

2002-05-04 Thread Hiram Chirino
yep.. I think that's the info I needed. Thanks! >From: Dain Sundstrom <[EMAIL PROTECTED]> >To: Hiram Chirino <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z) >Date: Thu,

AW: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z)

2002-05-02 Thread Jung , Dr. Christoph
Gesendet: Freitag, 3. Mai 2002 05:00 An: Hiram Chirino; [EMAIL PROTECTED] Betreff: RE: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z) makes no sense to me, ask for clarification and example marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On

Re: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z)

2002-05-02 Thread Dain Sundstrom
In org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory I have a method (convertToJavaClass) that does the name to array class conversion. Here is the core: int arraySize = 0; while(name.endsWith("[]")) { name = name.substring(0, name.length()-2); arraySize++; } try {

RE: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z)

2002-05-02 Thread marc fleury
|but the observed difference is that Class.forName maintains a cache |of Class objects keyed by name. Once a class is loaded by a given |ClassLoader, it is that version of the class that is returned regardless |of what the ClassLoader passed to Class.forName will return. We is that right? that is

RE: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z)

2002-05-02 Thread marc fleury
makes no sense to me, ask for clarification and example marcf |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED]]On Behalf Of Hiram |Chirino |Sent: Thursday, May 02, 2002 7:30 PM |To: [EMAIL PROTECTED] |Subject: [JBoss-dev] getContextClassLoader() vs. Class.forName

Re: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z)

2002-05-02 Thread Scott M Stark
- Original Message - From: "Hiram Chirino" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 02, 2002 7:29 PM Subject: [JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z) > Question for you classloading feaks out ther

[JBoss-dev] getContextClassLoader() vs. Class.forName(x,y,z)

2002-05-02 Thread Hiram Chirino
Question for you classloading feaks out there, what is the difference between: x = "some.class.name"; Thread.currentThread().getContextClassLoader().loadClass(x); and x = "some.class.name"; Class.forName(x, false, Thread.currentThread().getContextClassLoader()); Peter Levart, submitted a