Package com.sun.faces.util
Class DebugUtil
- java.lang.Object
-
- com.sun.faces.util.DebugUtil
-
public class DebugUtil extends Object
DebugUtil is a class ... Lifetime And Scope
-
-
Constructor Summary
Constructors Constructor Description DebugUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinit()static voidprintList(List list, Logger out)static voidprintState(Map state, Logger out)static StringprintTree(UIComponent root)static voidprintTree(UIComponent root, PrintStream out)Output of printTree() to a PrintStream.static voidprintTree(UIComponent root, Writer out)static voidprintTree(UIComponent root, Logger logger, Level level)static voidprintTree(Object[] root, Writer out)static voidprintTree(Object[] root, Logger out)static voidsetKeepWaiting(boolean keepWaiting)static voidsimplePrintTree(UIComponent root, String duplicateId, Writer out)static voidwaitForDebugger()Usage:
-
-
-
Method Detail
-
init
protected void init()
-
setKeepWaiting
public static void setKeepWaiting(boolean keepWaiting)
-
waitForDebugger
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.
-
printTree
public static String printTree(UIComponent root)
- Parameters:
root- the root component- Returns:
- the output of printTree() as a String. Useful when used with a Logger. For example: logger.log(DebugUtil.printTree(root));
-
printTree
public static void printTree(UIComponent root, PrintStream out)
Output of printTree() to a PrintStream. Usage: DebugUtil.printTree(root, System.out);- Parameters:
root- the root componentout- the PrintStream to write to
-
printTree
public static void printTree(UIComponent root, Logger logger, Level level)
-
printTree
public static void printTree(UIComponent root, Writer out)
-
simplePrintTree
public static void simplePrintTree(UIComponent root, String duplicateId, Writer out)
-
-