Package org.apache.logging.log4j.util
Class PrivateSecurityManagerStackTraceUtil
- java.lang.Object
-
- org.apache.logging.log4j.util.PrivateSecurityManagerStackTraceUtil
-
final class PrivateSecurityManagerStackTraceUtil extends java.lang.ObjectInternal utility to share a fast implementation of#getCurrentStackTrace()with the java 9 implementation ofStackLocator.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classPrivateSecurityManagerStackTraceUtil.PrivateSecurityManager
-
Field Summary
Fields Modifier and Type Field Description private static PrivateSecurityManagerStackTraceUtil.PrivateSecurityManagerSECURITY_MANAGER
-
Constructor Summary
Constructors Modifier Constructor Description privatePrivateSecurityManagerStackTraceUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static java.util.Deque<java.lang.Class<?>>getCurrentStackTrace()Returns the current execution stack as a Deque of classes.(package private) static booleanisEnabled()
-
-
-
Field Detail
-
SECURITY_MANAGER
private static final PrivateSecurityManagerStackTraceUtil.PrivateSecurityManager SECURITY_MANAGER
-
-
Method Detail
-
isEnabled
static boolean isEnabled()
-
getCurrentStackTrace
static java.util.Deque<java.lang.Class<?>> 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.
-
-