CallStack strategy using a SecurityManager. Obtaining the current call stack is much faster via a
SecurityManger, but access to the underlying method may be restricted by the current SecurityManager. In environments
where a SecurityManager cannot be created, ThrowableCallStack should be used instead.
RuntimePermission, SecurityManager#getClassContext()
| Modifier and Type | Class and Description |
|---|---|
| private static class | SecurityManagerCallStack.
References Deprecated
A custom security manager.
SecurityManager is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private static class | SecurityManagerCallStack.
A snapshot of a class stack. |
| Modifier and Type | Field and Description |
|---|---|
| private final DateFormat | |
| private final String | |
| private final SecurityManagerCallStack. | securityManager
References Deprecated
SecurityManagerCallStack.PrivateSecurityManager is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private volatile SecurityManagerCallStack. |
| Access | Constructor and Description |
|---|---|
| public | SecurityManagerCallStack(final String
message format messageFormat, final boolean whether to format the dates in the output message or not useTimestamp)Creates a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements org. Clears the current stack trace snapshot. |
| public void | fillInStackTrace()
Implements org. Takes a snapshot of the current call stack. |
| public boolean | printStackTrace(final PrintWriter writer)
Implements org. Prints the current stack trace if available to a PrintWriter. |
| dateFormat | back to summary |
|---|---|
| private final DateFormat dateFormat | |
| messageFormat | back to summary |
|---|---|
| private final String messageFormat | |
| securityManager | back to summary |
|---|---|
| private final SecurityManagerCallStack. References Deprecated
See corresponding docs for further information. | |
| snapshot | back to summary |
|---|---|
| private volatile SecurityManagerCallStack. | |
| SecurityManagerCallStack | back to summary |
|---|---|
| public SecurityManagerCallStack(final String messageFormat, final boolean useTimestamp) Creates a new instance.
| |
| clear | back to summary |
|---|---|
| public void clear() Implements org. Doc from org. Clears the current stack trace snapshot. Subsequent calls to
| |
| fillInStackTrace | back to summary |
|---|---|
| public void fillInStackTrace() Implements org. Doc from org. Takes a snapshot of the current call stack. Subsequent calls to
| |
| printStackTrace | back to summary |
|---|---|
| public boolean printStackTrace(final PrintWriter writer) Implements org. Doc from org. Prints the current stack trace if available to a PrintWriter. The format is undefined and is primarily useful
for debugging issues with
| |
References Deprecated
SecurityManager is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private List |
| PrivateSecurityManager | back to summary |
|---|---|
| private PrivateSecurityManager() | |
| getCallStack | back to summary |
|---|---|
| private List Gets the class stack.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final long |
| Access | Constructor and Description |
|---|---|
| private | Snapshot(final List<WeakReference<Class<?>>>
class stack stack)Constructs a new snapshot with a class stack. |
| stack | back to summary |
|---|---|
| private final List<WeakReference<Class<?>>> stack | |
| timestampMillis | back to summary |
|---|---|
| private final long timestampMillis | |
| Snapshot | back to summary |
|---|---|
| private Snapshot(final List<WeakReference<Class<?>>> stack) Constructs a new snapshot with a class stack.
| |