public final class Util
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
Util.ClassContextSecurityManager
In order to call
SecurityManager.getClassContext() , which is a
protected method, we add this wrapper which allows the method to be visible
inside this package. |
Modifier and Type | Field and Description |
---|---|
private static Util.ClassContextSecurityManager |
SECURITY_MANAGER |
private static boolean |
SECURITY_MANAGER_CREATION_ALREADY_ATTEMPTED |
Modifier | Constructor and Description |
---|---|
private |
Util() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class<?> |
getCallingClass()
Returns the name of the class which called the invoking method.
|
private static Util.ClassContextSecurityManager |
getSecurityManager() |
static void |
report(java.lang.String msg) |
static void |
report(java.lang.String msg,
java.lang.Throwable t) |
private static Util.ClassContextSecurityManager |
safeCreateSecurityManager() |
static boolean |
safeGetBooleanSystemProperty(java.lang.String key) |
static java.lang.String |
safeGetSystemProperty(java.lang.String key) |
private static Util.ClassContextSecurityManager SECURITY_MANAGER
private static boolean SECURITY_MANAGER_CREATION_ALREADY_ATTEMPTED
public static java.lang.String safeGetSystemProperty(java.lang.String key)
public static boolean safeGetBooleanSystemProperty(java.lang.String key)
private static Util.ClassContextSecurityManager getSecurityManager()
private static Util.ClassContextSecurityManager safeCreateSecurityManager()
public static java.lang.Class<?> getCallingClass()
public static final void report(java.lang.String msg, java.lang.Throwable t)
public static final void report(java.lang.String msg)