java.lang.Object
com.sun.faces.util.DebugUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
init()
static void
static void
printState
(Map state, Logger out) static String
printTree
(UIComponent root) static void
printTree
(UIComponent root, PrintStream out) Output of printTree() to a PrintStream.static void
printTree
(UIComponent root, Writer out) static void
printTree
(UIComponent root, Logger logger, Level level) static void
static void
static void
setKeepWaiting
(boolean keepWaiting) static void
simplePrintTree
(UIComponent root, String duplicateId, Writer out) static void
Usage:
-
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
-