Jesper Nordenberg wrote:
>
> 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 you know the class' name, and I suspect that you do since you are in
a static method of the class, you can do a Class.forName(className).
Each derivative class have to override this method if the obtained Class
is used in some substantial way.
--
Weiqi Gao
[EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]