org.rhq.enterprise.gui.common.framework
Class PhaseTracker

java.lang.Object
  extended by org.rhq.enterprise.gui.common.framework.PhaseTracker
All Implemented Interfaces:
Serializable, EventListener, javax.faces.event.PhaseListener

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

A phase listener that trackS which phase of the JSF lifecycle the current request is in. It also provides a public static getter for other components that want to know what phase they are in, which could be useful for condition processing.

Author:
Joseph Marques
See Also:
Serialized Form

Constructor Summary
PhaseTracker()
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent event)
           
 void beforePhase(javax.faces.event.PhaseEvent event)
           
static javax.faces.event.PhaseId getCurrentPhase()
           
 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

PhaseTracker

public PhaseTracker()
Method Detail

getCurrentPhase

public static javax.faces.event.PhaseId getCurrentPhase()

getPhaseId

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

beforePhase

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

afterPhase

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


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.