Top Description Constructors Methods
org.apache.commons.pool2.impl

public final Class CallStackUtils

extends Object
Class Inheritance
Imports
java.security.AccessControlException

Utility methods for CallStack.
Since
2.4.3

Constructor Summary

AccessConstructor and Description
private
CallStackUtils()

Hidden constructor.

Method Summary

Modifier and TypeMethod and Description
private static boolean

Returns:

true if it is able to create a security manager in the current environment, false otherwise.
canCreateSecurityManager
()

Tests whether the caller can create a security manager in the current environment.

public static CallStack

Returns:

a new CallStack
newCallStack
(final String
message (or format) to print first in stack traces
messageFormat
,
final boolean
if true, interpret message as a SimpleDateFormat and print the created timestamp; otherwise, print message format literally
useTimestamp
)

Constructs a new CallStack using the fastest allowed strategy.
public static CallStack

Returns:

a new CallStack
newCallStack
(final String
message (or format) to print first in stack traces
messageFormat
,
final boolean
if true, interpret message as a SimpleDateFormat and print the created timestamp; otherwise, print message format literally
useTimestamp
,
final boolean
if true, forces the use of a stack walking mechanism that includes full stack trace information; otherwise, uses a faster implementation if possible
requireFullStackTrace
)

Constructs a new CallStack using the fasted allowed strategy.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CallStackUtilsback to summary
private CallStackUtils()

Hidden constructor.

Method Detail

canCreateSecurityManagerback to summary
private static boolean canCreateSecurityManager()

Tests whether the caller can create a security manager in the current environment.

Returns:boolean

true if it is able to create a security manager in the current environment, false otherwise.

newCallStackback to summary
public static CallStack newCallStack(final String messageFormat, final boolean useTimestamp)

Constructs a new CallStack using the fastest allowed strategy.

Parameters
messageFormat:String

message (or format) to print first in stack traces

useTimestamp:boolean

if true, interpret message as a SimpleDateFormat and print the created timestamp; otherwise, print message format literally

Returns:CallStack

a new CallStack

Annotations
@Deprecated
newCallStackback to summary
public static CallStack newCallStack(final String messageFormat, final boolean useTimestamp, final boolean requireFullStackTrace)

Constructs a new CallStack using the fasted allowed strategy.

Parameters
messageFormat:String

message (or format) to print first in stack traces

useTimestamp:boolean

if true, interpret message as a SimpleDateFormat and print the created timestamp; otherwise, print message format literally

requireFullStackTrace:boolean

if true, forces the use of a stack walking mechanism that includes full stack trace information; otherwise, uses a faster implementation if possible

Returns:CallStack

a new CallStack

Since
2.5