com.sun.faces.lifecycle
Class Phase

java.lang.Object
  extended by com.sun.faces.lifecycle.Phase
Direct Known Subclasses:
ApplyRequestValuesPhase, InvokeApplicationPhase, ProcessValidationsPhase, RenderResponsePhase, RestoreViewPhase, UpdateModelValuesPhase

public abstract class Phase
extends java.lang.Object

A Phase is a single step in the processing of a JavaServer Faces request throughout its entire Lifecycle. Each Phase performs the required transitions on the state information in the FacesContext associated with this request.


Constructor Summary
Phase()
           
 
Method Summary
abstract  void execute(javax.faces.context.FacesContext context)
          Perform all state transitions required by the current phase of the request processing Lifecycle for a particular request.
abstract  javax.faces.event.PhaseId getId()
          Returns the current Lifecycle Phase identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Phase

public Phase()
Method Detail

execute

public abstract void execute(javax.faces.context.FacesContext context)
                      throws javax.faces.FacesException

Perform all state transitions required by the current phase of the request processing Lifecycle for a particular request. Return one of the standard state change values (GOTO_EXIT, GOTO_NEXT, or GOTO_RENDER) to indicate what the request processing lifecycle should do next.

Parameters:
context - FacesContext for the current request being processed
Throws:
javax.faces.FacesException - if a processing error occurred while executing this phase

getId

public abstract javax.faces.event.PhaseId getId()

Returns the current Lifecycle Phase identifier.



Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.