Class DebugUtil

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

public class DebugUtil extends Object
DebugUtil is a class ... Lifetime And Scope
  • 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 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 component
      out - 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)
    • printState

      public static void printState(Map state, Logger out)
    • printTree

      public static void printTree(Object[] root, Writer out)
    • printTree

      public static void printTree(Object[] root, Logger out)
    • printList

      public static void printList(List list, Logger out)