public static String getCallerClass() {
		StackTraceElement[] stacktrace = Thread.currentThread().getStackTrace();
		if (stacktrace.length >= 4) {
			StackTraceElement element = stacktrace[3];
			return element.getClassName();
		} else {
			return StringUtils.EMPTY;
		}
	}
public static String getCallerClass ( ) { StackTraceElement [ ] stacktrace = Thread . currentThread ( ) . getStackTrace ( ) ; if ( stacktrace . length >= 4 ) { StackTraceElement element = stacktrace [ 3 ] ; return element . getClassName ( ) ; } else { return StringUtils . EMPTY ; } }
通过StackTrace，获得调用者的类名.

获取StackTrace有消耗，不要滥用