Package org.apache.logging.log4j.util
Class PrivateSecurityManagerStackTraceUtil
java.lang.Object
org.apache.logging.log4j.util.PrivateSecurityManagerStackTraceUtil
Internal utility to share a fast implementation of
#getCurrentStackTrace()
with the java 9 implementation of StackLocator
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PrivateSecurityManagerStackTraceUtil.PrivateSecurityManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the current execution stack as a Deque of classes.(package private) static boolean
-
Field Details
-
SECURITY_MANAGER
-
-
Constructor Details
-
PrivateSecurityManagerStackTraceUtil
private PrivateSecurityManagerStackTraceUtil()
-
-
Method Details
-
isEnabled
static boolean isEnabled() -
getCurrentStackTrace
Returns the current execution stack as a Deque of classes.The size of the Deque is the number of methods on the execution stack. The first element is the class that started execution on this thread, the next element is the class that was called next, and so on, until the last element: the method that called
SecurityManager.getClassContext()
to capture the stack.- Returns:
- the execution stack.
-