Package org.apache.log.util
Class StackIntrospector.CallStack
- java.lang.Object
-
- java.lang.SecurityManager
-
- org.apache.log.util.StackIntrospector.CallStack
-
- Enclosing class:
- StackIntrospector
private static final class StackIntrospector.CallStack extends java.lang.SecurityManager
Hack to get the call stack as an array of classes. The SecurityManager class provides it as a protected method, so change it to public through a new method !
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CallStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class[]
get()
Returns the current execution stack as an array of classes.-
Methods inherited from class java.lang.SecurityManager
checkAccept, checkAccess, checkAccess, checkConnect, checkConnect, checkCreateClassLoader, checkDelete, checkExec, checkExit, checkLink, checkListen, checkMulticast, checkMulticast, checkPackageAccess, checkPackageDefinition, checkPermission, checkPermission, checkPrintJobAccess, checkPropertiesAccess, checkPropertyAccess, checkRead, checkRead, checkRead, checkSecurityAccess, checkSetFactory, checkWrite, checkWrite, getClassContext, getSecurityContext, getThreadGroup
-
-
-
-
Method Detail
-
get
public java.lang.Class[] get()
Returns the current execution stack as an array of classes. The length of the array is the number of methods on the execution stack. The element at index 0 is the class of the currently executing method, the element at index 1 is the class of that method's caller, and so on.
-
-