public abstract class Phase extends 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 and Description |
---|
Phase() |
Modifier and Type | Method and Description |
---|---|
void |
doPhase(FacesContext context,
Lifecycle lifecycle,
ListIterator<PhaseListener> listeners)
Performs PhaseListener processing and invokes the execute method
of the Phase.
|
abstract void |
execute(FacesContext context)
Perform all state transitions required by the current phase of the
request processing
Lifecycle for a
particular request. |
abstract PhaseId |
getId() |
protected void |
handleAfterPhase(FacesContext context,
ListIterator<PhaseListener> listenersIterator,
PhaseEvent event)
Handle
afterPhase PhaseListener events. |
protected void |
handleBeforePhase(FacesContext context,
ListIterator<PhaseListener> listenersIterator,
PhaseEvent event)
Handle
beforePhase PhaseListener events. |
protected void |
queueException(FacesContext ctx,
Throwable t) |
protected void |
queueException(FacesContext ctx,
Throwable t,
String booleanKey) |
public void doPhase(FacesContext context, Lifecycle lifecycle, ListIterator<PhaseListener> listeners)
context
- the FacesContext for the current requestlifecycle
- the lifecycle for this requestpublic abstract void execute(FacesContext context) throws FacesException
Perform all state transitions required by the current phase of the
request processing Lifecycle
for a
particular request.
context
- FacesContext for the current request being processedFacesException
- if a processing error occurred while
executing this phaseprotected void queueException(FacesContext ctx, Throwable t)
protected void queueException(FacesContext ctx, Throwable t, String booleanKey)
protected void handleAfterPhase(FacesContext context, ListIterator<PhaseListener> listenersIterator, PhaseEvent event)
afterPhase
PhaseListener
events.context
- the FacesContext for the current requestlistenersIterator
- a ListIterator for the PhaseListeners that need
to be invokedevent
- the event to pass to each of the invoked listenersprotected void handleBeforePhase(FacesContext context, ListIterator<PhaseListener> listenersIterator, PhaseEvent event)
beforePhase
PhaseListener
events.context
- the FacesContext for the current requestlistenersIterator
- a ListIterator for the PhaseListeners that need
to be invokedevent
- the event to pass to each of the invoked listenersComments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.