javax.faces.component
Class UIViewRootTestCase.PhaseListenerBean

java.lang.Object
  extended by javax.faces.component.UIViewRootTestCase.PhaseListenerBean
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, PhaseListener
Enclosing class:
UIViewRootTestCase

public static class UIViewRootTestCase.PhaseListenerBean
extends java.lang.Object
implements PhaseListener

See Also:
Serialized Form

Constructor Summary
UIViewRootTestCase.PhaseListenerBean(PhaseId phaseId)
           
UIViewRootTestCase.PhaseListenerBean(PhaseId phaseId, boolean exceptionBefore, boolean exceptionAfter)
           
 
Method Summary
 void afterPhase(PhaseEvent e)
          Handle a notification that the processing for a particular phase has just been completed.
 void beforePhase(PhaseEvent e)
          Handle a notification that the processing for a particular phase of the request processing lifecycle is about to begin.
 PhaseId getPhaseId()
          Return the identifier of the request processing phase during which this listener is interested in processing PhaseEvent events.
 boolean isAfterPhaseCalled()
           
 boolean isBeforePhaseCalled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIViewRootTestCase.PhaseListenerBean

public UIViewRootTestCase.PhaseListenerBean(PhaseId phaseId)

UIViewRootTestCase.PhaseListenerBean

public UIViewRootTestCase.PhaseListenerBean(PhaseId phaseId,
                                            boolean exceptionBefore,
                                            boolean exceptionAfter)
Method Detail

isBeforePhaseCalled

public boolean isBeforePhaseCalled()

isAfterPhaseCalled

public boolean isAfterPhaseCalled()

beforePhase

public void beforePhase(PhaseEvent e)
Description copied from interface: PhaseListener

Handle a notification that the processing for a particular phase of the request processing lifecycle is about to begin.

Specified by:
beforePhase in interface PhaseListener

afterPhase

public void afterPhase(PhaseEvent e)
Description copied from interface: PhaseListener

Handle a notification that the processing for a particular phase has just been completed.

Specified by:
afterPhase in interface PhaseListener

getPhaseId

public PhaseId getPhaseId()
Description copied from interface: PhaseListener

Return the identifier of the request processing phase during which this listener is interested in processing PhaseEvent events. Legal values are the singleton instances defined by the PhaseId class, including PhaseId.ANY_PHASE to indicate an interest in being notified for all standard phases.

Specified by:
getPhaseId in interface PhaseListener


Copyright 2002-2011 Oracle America Inc, Inc. All Rights Reserved.