>This might be slightly off topic, but I really need help with this.
>
>Is there any way to obtain the Class-instance associated with the current
>class in a static method? Obviously, this.getClass() doesn't work ;)
>
If the class is call com.blah.Stuff, use com.blah.Stuff.class; to get the
java.lang.Class for a class.
eg.
package com.blah;
class Stuff {
public static void doIt()
{
Class c = com.blah.Stuff.class;
}
}
Regards
--Jools
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]