Lifetime And Scope
| Modifier and Type | Field and Description |
|---|---|
| private static int | |
| private static boolean | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | |
| private static void | |
| protected void | |
| public static void | |
| public static void | |
| public static String | Returns: the output of printTree() as a String. Useful when used with a Logger. For example: logger.log(DebugUtil.printTree(root));the root component root)
|
| public static void | printTree(UIComponent
the root component root, PrintStream the PrintStream to write to out)Output of printTree() to a PrintStream. |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | waitForDebugger()
Usage:
Place a call to this method in the earliest possible entry point of your servlet app. |
| curDepth | back to summary |
|---|---|
| private static int curDepth | |
| keepWaiting | back to summary |
|---|---|
| private static boolean keepWaiting | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| DebugUtil | back to summary |
|---|---|
| public DebugUtil() | |
| assertSerializability | back to summary |
|---|---|
| private static void assertSerializability(StringBuilder builder, Object toPrint) | |
| indentPrintln | back to summary |
|---|---|
| private static void indentPrintln(Writer out, String str) | |
| indentPrintln | back to summary |
|---|---|
| private static void indentPrintln(Logger out, Object toPrint) | |
| init | back to summary |
|---|---|
| protected void init() | |
| printList | back to summary |
|---|---|
| public static void printList(List<E> list, Logger out) | |
| printState | back to summary |
|---|---|
| public static void printState(Map<K, V> state, Logger out) | |
| printTree | back to summary |
|---|---|
public static String printTree(UIComponent root)
| |
| printTree | back to summary |
|---|---|
| public static void printTree(UIComponent root, PrintStream out) Output of printTree() to a PrintStream. Usage: DebugUtil.printTree(root, System.out);
| |
| printTree | back to summary |
|---|---|
| public static void printTree(UIComponent root, Logger logger, Level level) | |
| printTree | back to summary |
|---|---|
| public static void printTree(UIComponent root, Writer out) | |
| printTree | back to summary |
|---|---|
| public static void printTree(Object[] root, Writer out) | |
| printTree | back to summary |
|---|---|
| public static void printTree(Object[] root, Logger out) | |
| setKeepWaiting | back to summary |
|---|---|
| public static void setKeepWaiting(boolean keepWaiting) | |
| simplePrintTree | back to summary |
|---|---|
| public static void simplePrintTree(UIComponent root, String duplicateId, Writer out) | |
| waitForDebugger | back to summary |
|---|---|
| public static void waitForDebugger() Usage:
Place a call to this method in the earliest possible entry point of your servlet app. It will cause the app to enter into an infinite loop, sleeping until the static var keepWaiting is set to false. The idea is that you attach your debugger to the servlet, then, set a breakpont in this method. When it is hit, you use the debugger to set the keepWaiting class var to false. | |