// ways of getting at the current class, e.g. a sort of "this-class" // easiest way, but requires knowing the name of the class: Class cCurrent = XXXX.class; // current class. Does not work inside static methods. Class cCurrent = this.getClass(); // current class. Works inside static methods. // getClassContext is protected, so you will need to extend the security manager class. Class cCurrent = SecurityManager.getClassContext()[0]; // fully qualified name Class cCurrent = new Throwable().getStackTrace()[0].getClassName(); // simple name Class cCurrent = Class.forName( new Throwable().getStackTrace()[0].getClassName() ).getSimpleName();