public final class AppUtil
extends java.lang.Object
ApplicationContext
.Modifier and Type | Method and Description |
---|---|
static <A extends ApplicationContext> |
getDefaultContext()
Returns the
ApplicationContext instance that was set by
setDefaultContext(ApplicationContext) . |
static void |
invokeAndWait(ApplicationContext ctx,
java.lang.Runnable r)
A version of invokeAndWait that distinguishes between GUI and non-GUI clients.
|
static void |
invokeLater(ApplicationContext ctx,
java.lang.Runnable r)
A version of invokeLater that distinguishes between GUI and non GUI clients.
|
static void |
logDebug(java.lang.Object caller,
java.lang.String msg) |
static void |
logDump(java.lang.Object caller,
java.lang.String msg) |
static void |
logError(java.lang.Object caller,
java.lang.Exception e) |
static void |
logError(java.lang.Object caller,
java.lang.String msg) |
static void |
logError(java.lang.Object caller,
java.lang.String msg,
java.lang.Exception e) |
static void |
logInfo(java.lang.Object caller,
java.lang.String msg) |
static void |
logVerbose(java.lang.Object caller,
java.lang.String msg) |
static void |
logWarning(java.lang.Object caller,
java.lang.String msg) |
static void |
runBlockingInET(RunnableAdapter r)
This method executes the given
RunnableAdapter in the EventDispatcherThread
and raises any thrown Exception to the caller. |
static void |
setDefaultContext(ApplicationContext ctx)
Sets a default context.
|
static void |
setDefaultLogLevel(LogLevel level)
Sets the default log
LogLevel that is used by the logging methods used
defined in this class. |
public static void setDefaultContext(ApplicationContext ctx)
ApplicationContext
instance.public static <A extends ApplicationContext> A getDefaultContext()
ApplicationContext
instance that was set by
setDefaultContext(ApplicationContext)
.public static void invokeLater(ApplicationContext ctx, java.lang.Runnable r)
public static void invokeAndWait(ApplicationContext ctx, java.lang.Runnable r)
public static void runBlockingInET(RunnableAdapter r) throws java.lang.Exception
RunnableAdapter
in the EventDispatcherThread
and raises any thrown Exception to the caller.java.lang.Exception
public static void setDefaultLogLevel(LogLevel level)
LogLevel
that is used by the logging methods used
defined in this class.public static void logError(java.lang.Object caller, java.lang.String msg)
public static void logError(java.lang.Object caller, java.lang.Exception e)
public static void logError(java.lang.Object caller, java.lang.String msg, java.lang.Exception e)
public static void logWarning(java.lang.Object caller, java.lang.String msg)
public static void logVerbose(java.lang.Object caller, java.lang.String msg)
public static void logInfo(java.lang.Object caller, java.lang.String msg)
public static void logDebug(java.lang.Object caller, java.lang.String msg)
public static void logDump(java.lang.Object caller, java.lang.String msg)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.