com.sun.faces.util
Class DebugUtil

java.lang.Object
  extended by com.sun.faces.util.DebugUtil

public class DebugUtil
extends java.lang.Object

DebugUtil is a class ...

Lifetime And Scope


Constructor Summary
DebugUtil()
           
 
Method Summary
protected  void init()
           
static void printTree(java.lang.Object[] root, java.io.Writer out)
           
static java.lang.String printTree(javax.faces.component.UIComponent root)
          Output of printTree() as a String.
static void printTree(javax.faces.component.UIComponent root, java.util.logging.Logger logger, java.util.logging.Level level)
           
static void printTree(javax.faces.component.UIComponent root, java.io.PrintStream out)
          Output of printTree() to a PrintStream.
static void printTree(javax.faces.component.UIComponent root, java.io.Writer out)
           
static void setKeepWaiting(boolean keepWaiting)
           
static void simplePrintTree(javax.faces.component.UIComponent root, java.lang.String duplicateId, java.io.Writer out)
           
static void waitForDebugger()
          Usage:
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugUtil

public DebugUtil()
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 java.lang.String printTree(javax.faces.component.UIComponent root)
Output of printTree() as a String. Useful when used with a Logger. For example: logger.log(DebugUtil.printTree(root));


printTree

public static void printTree(javax.faces.component.UIComponent root,
                             java.io.PrintStream out)
Output of printTree() to a PrintStream. Usage: DebugUtil.printTree(root, System.out);


printTree

public static void printTree(javax.faces.component.UIComponent root,
                             java.util.logging.Logger logger,
                             java.util.logging.Level level)

printTree

public static void printTree(javax.faces.component.UIComponent root,
                             java.io.Writer out)

simplePrintTree

public static void simplePrintTree(javax.faces.component.UIComponent root,
                                   java.lang.String duplicateId,
                                   java.io.Writer out)

printTree

public static void printTree(java.lang.Object[] root,
                             java.io.Writer out)


Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.