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(javax.faces.context.FacesContext context,
javax.faces.lifecycle.Lifecycle lifecycle,
ListIterator<javax.faces.event.PhaseListener> listeners)
Performs PhaseListener processing and invokes the execute method
of the Phase.
|
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() |
protected void |
handleAfterPhase(javax.faces.context.FacesContext context,
ListIterator<javax.faces.event.PhaseListener> listenersIterator,
javax.faces.event.PhaseEvent event)
Handle
afterPhase PhaseListener events. |
protected void |
handleBeforePhase(javax.faces.context.FacesContext context,
ListIterator<javax.faces.event.PhaseListener> listenersIterator,
javax.faces.event.PhaseEvent event)
Handle
beforePhase PhaseListener events. |
protected void |
queueException(javax.faces.context.FacesContext ctx,
Throwable t) |
protected void |
queueException(javax.faces.context.FacesContext ctx,
Throwable t,
String booleanKey) |
public void doPhase(javax.faces.context.FacesContext context, javax.faces.lifecycle.Lifecycle lifecycle, ListIterator<javax.faces.event.PhaseListener> listeners)
context
- the FacesContext for the current requestlifecycle
- the lifecycle for this requestpublic 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.
context
- FacesContext for the current request being processedjavax.faces.FacesException
- if a processing error occurred while
executing this phasepublic abstract javax.faces.event.PhaseId getId()
Lifecycle
Phase identifier.protected void queueException(javax.faces.context.FacesContext ctx, Throwable t)
protected void queueException(javax.faces.context.FacesContext ctx, Throwable t, String booleanKey)
protected void handleAfterPhase(javax.faces.context.FacesContext context, ListIterator<javax.faces.event.PhaseListener> listenersIterator, javax.faces.event.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(javax.faces.context.FacesContext context, ListIterator<javax.faces.event.PhaseListener> listenersIterator, javax.faces.event.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 listenersCopyright © 2010–2019 JBoss by Red Hat. All rights reserved.