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:
Serializable, EventListener, PhaseListener

public class DebugPhaseListener
extends Object
implements 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(PhaseEvent event)
           
 void beforePhase(PhaseEvent event)
           
static void createFieldDebugInfo(FacesContext facesContext, String field, Object oldValue, Object newValue, String clientId)
          Creates the field debug-info for the given field, which changed from oldValue to newValue in the given component.
static Map<String,List<Object[]>> getDebugInfoMap(String clientId)
          Returns the debug-info Map for the given component.
static List<Object[]> getFieldDebugInfos(String field, String clientId)
          Returns the field's debug-infos from the component's debug-info Map.
 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 Map<String,List<Object[]>> getDebugInfoMap(String clientId)
Returns the debug-info Map for the given component. ATTENTION: this method is duplicate in UIInput.

Parameters:
clientId -
Returns:

getFieldDebugInfos

public static List<Object[]> getFieldDebugInfos(String field,
                                                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(FacesContext facesContext,
                                        String field,
                                        Object oldValue,
                                        Object newValue,
                                        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(PhaseEvent event)
Specified by:
afterPhase in interface PhaseListener

beforePhase

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

getPhaseId

public PhaseId getPhaseId()
Specified by:
getPhaseId in interface PhaseListener


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