StackTrace
Find the Calling Class
Posted March 28th, 2008 by administrator
Here is a simple snippet to find out the calling Java Class.
Class.forName(new Throwable().getStackTrace()[2].getClassName()));
Here is a simple snippet to find out the calling Java Class.
Class.forName(new Throwable().getStackTrace()[2].getClassName()));