com.davesag.jsf
Class PhaseTracker

java.lang.Object
  extended bycom.davesag.jsf.PhaseTracker
All Implemented Interfaces:
EventListener, javax.faces.event.PhaseListener, Serializable

public class PhaseTracker
extends Object
implements javax.faces.event.PhaseListener

register this phase tracker with your faces.config and then you'll be able to log the various phase events as they fire. If you specify an initParam with the name com.davesag.jsf.PhaseTracker.PHASE then the PhaseTracker will only track the phase you specify.

See Also:
Serialized Form

Constructor Summary
PhaseTracker()
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent e)
          logs that we are after the given phase.
 void beforePhase(javax.faces.event.PhaseEvent e)
          logs that we are before the given phase.
 javax.faces.event.PhaseId getPhaseId()
          get the id of the current phase.
 void setPhase(String phase)
          set the phase value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhaseTracker

public PhaseTracker()
Method Detail

setPhase

public void setPhase(String phase)
set the phase value

Parameters:
phase - The new phase value

getPhaseId

public javax.faces.event.PhaseId getPhaseId()
get the id of the current phase.

Specified by:
getPhaseId in interface javax.faces.event.PhaseListener
Returns:
the phase id.
Throws:
RuntimeException - if the phase specified is not a known phase.

beforePhase

public void beforePhase(javax.faces.event.PhaseEvent e)
logs that we are before the given phase.

Specified by:
beforePhase in interface javax.faces.event.PhaseListener
Parameters:
e - The PhaseEvent

afterPhase

public void afterPhase(javax.faces.event.PhaseEvent e)
logs that we are after the given phase.

Specified by:
afterPhase in interface javax.faces.event.PhaseListener
Parameters:
e - The PhaseEvent


JSF Helper API version 20 Jan 2005. (C) 2004 Dave Sag.