| Modifier and Type | Class and Description |
|---|---|
| private static class | StackIntrospector.CallStack
Deprecated
as a consequence of Hack to get the call stack as an array of classes.
SecurityManager being deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
| private static StackIntrospector. | c_callStack
Deprecated
as a consequence of
StackIntrospector.CallStack being deprecated.
|
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static final Class | Returns: the Class of object that called parrameter classthe Class to search for on stack to find caller of clazz)Find the caller of the passed in Class. |
| public static final Class | Returns: the Class of object that called parrameter classthe Class to search for on stack to find caller of clazz, int Offset call-stack depth to find caller stackDepthOffset)Find the caller of the passed in Class. |
| public static final String | Returns: The method path name in the form "the.package.path.Method"the Class to search for on stack to find caller of clazz)Get the method path name for the method from which the LogEvent was created, this includes the path name and the source filename and line number if the source was compiled with debugging on. |
| private static synchronized StackIntrospector. | Returns: the CallStack object
Deprecated
as a consequence of
Create Hack SecurityManager to get CallStack.
StackIntrospector.CallStack being deprecated.
|
| public static final String | Returns: The method path name in the form "the.package.path.Method"the last class on the stack you are not interested in! clazz, int the number of stack lines to return. entries)Return the current call stack as a String, starting with the first call
in the stack after a reference to the |
| c_callStack | back to summary |
|---|---|
| private static StackIntrospector. Deprecated as a consequence of | |
| StackIntrospector | back to summary |
|---|---|
| private StackIntrospector() Private constructor to block instantiation. | |
| getCallerClass | back to summary |
|---|---|
| public static final Class Find the caller of the passed in Class. May return null if caller not found on execution stack
| |
| getCallerClass | back to summary |
|---|---|
| public static final Class Find the caller of the passed in Class. May return null if caller not found on execution stack
| |
| getCallerMethod | back to summary |
|---|---|
| public static final String getCallerMethod(final Class<T> clazz) Get the method path name for the method from which the LogEvent was created, this includes the path name and the source filename and line number if the source was compiled with debugging on. | |
| getCallStack | back to summary |
|---|---|
| private static synchronized StackIntrospector. Deprecated as a consequence of Create Hack SecurityManager to get CallStack.
| |
| getRecentStack | back to summary |
|---|---|
| public static final String getRecentStack(final Class<T> clazz, int entries) Return the current call stack as a String, starting with the first call
in the stack after a reference to the This can be useful for debugging code to determine where calls to a method are coming from. | |
Deprecated
as a consequence of SecurityManager being deprecated. See corresponding docs for further information.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Class |
| CallStack | back to summary |
|---|---|
| private CallStack() | |
| get | back to summary |
|---|---|
| public Class 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. | |