org.apache.jorphan.util
Class ClassContext
SecurityManager
org.apache.jorphan.util.ClassContext
public final class ClassContext
extends SecurityManager
Class to get access to the protected getClassContext() method of
SecurityManager, thus obtaining the call stack.
May not work with applications that install their own security managers.
static String | getCallerClassNameAt(int i) - Get the name of the class at a particular stack depth i=0 gives this
class
|
static Class[] | getMyClassContext() - Gets the calling context as an array of classes Class[0] is this class.
|
getCallerClassNameAt
public static String getCallerClassNameAt(int i)
Get the name of the class at a particular stack depth i=0 gives this
class
- String - name of class at depth i
getMyClassContext
public static Class[] getMyClassContext()
Gets the calling context as an array of classes Class[0] is this class.
- Class[] - list of classes in the callers context
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.