java.lang.Object
com.sun.faces.util.DebugUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinit()static voidstatic 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 voidstatic voidstatic voidsetKeepWaiting(boolean keepWaiting) static voidsimplePrintTree(UIComponent root, String duplicateId, Writer out) static voidUsage:
-
Constructor Details
-
DebugUtil
public DebugUtil()
-
-
Method Details
-
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 breakpoint in this method. When it is hit, you use the debugger to set the keepWaiting class var to false.
-
printTree
- 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
Output of printTree() to a PrintStream. Usage: DebugUtil.printTree(root, System.out);- Parameters:
root- the root componentout- the PrintStream to write to
-
printTree
-
printTree
-
simplePrintTree
-
printState
-
printTree
-
printTree
-
printList
-