org.apache.myfaces.view.facelets.tag.ui
Class DebugPhaseListener

java.lang.Object
  extended by org.apache.myfaces.view.facelets.tag.ui.DebugPhaseListener
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.faces.event.PhaseListener

public class DebugPhaseListener
extends java.lang.Object
implements javax.faces.event.PhaseListener

PhaseListener to create extended debug information. Installed in FacesConfigurator.configureLifecycle() if ProjectStage is Development.

Version:
$Revision: 955754 $ $Date: 2010-06-17 16:37:31 -0500 (Thu, 17 Jun 2010) $
Author:
Jakob Korherr (latest modification by $Author: jakobk $)
See Also:
Serialized Form

Constructor Summary
DebugPhaseListener()
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent event)
           
 void beforePhase(javax.faces.event.PhaseEvent event)
           
static void createFieldDebugInfo(javax.faces.context.FacesContext facesContext, java.lang.String field, java.lang.Object oldValue, java.lang.Object newValue, java.lang.String clientId)
          Creates the field debug-info for the given field, which changed from oldValue to newValue in the given component.
static java.util.Map<java.lang.String,java.util.List<java.lang.Object[]>> getDebugInfoMap(java.lang.String clientId)
          Returns the debug-info Map for the given component.
static java.util.List<java.lang.Object[]> getFieldDebugInfos(java.lang.String field, java.lang.String clientId)
          Returns the field's debug-infos from the component's debug-info Map.
 javax.faces.event.PhaseId getPhaseId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugPhaseListener

public DebugPhaseListener()
Method Detail

getDebugInfoMap

public static java.util.Map<java.lang.String,java.util.List<java.lang.Object[]>> getDebugInfoMap(java.lang.String clientId)
Returns the debug-info Map for the given component. ATTENTION: this method is duplicate in UIInput.

Parameters:
clientId -
Returns:

getFieldDebugInfos

public static java.util.List<java.lang.Object[]> getFieldDebugInfos(java.lang.String field,
                                                                    java.lang.String clientId)
Returns the field's debug-infos from the component's debug-info Map. ATTENTION: this method is duplicate in UIInput.

Parameters:
field -
clientId -
Returns:

createFieldDebugInfo

public static void createFieldDebugInfo(javax.faces.context.FacesContext facesContext,
                                        java.lang.String field,
                                        java.lang.Object oldValue,
                                        java.lang.Object newValue,
                                        java.lang.String clientId)
Creates the field debug-info for the given field, which changed from oldValue to newValue in the given component. ATTENTION: this method is duplicate in UIInput.

Parameters:
facesContext -
field -
oldValue -
newValue -
clientId -

afterPhase

public void afterPhase(javax.faces.event.PhaseEvent event)
Specified by:
afterPhase in interface javax.faces.event.PhaseListener

beforePhase

public void beforePhase(javax.faces.event.PhaseEvent event)
Specified by:
beforePhase in interface javax.faces.event.PhaseListener

getPhaseId

public javax.faces.event.PhaseId getPhaseId()
Specified by:
getPhaseId in interface javax.faces.event.PhaseListener


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.