public class LifecycleImpl
extends jakarta.faces.lifecycle.Lifecycle
LifecycleImpl is the stock implementation of the standard Lifecycle in the JavaServer Faces RI.
| Constructor and Description |
|---|
LifecycleImpl() |
LifecycleImpl(jakarta.faces.context.FacesContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPhaseListener(jakarta.faces.event.PhaseListener listener)
Register a new
PhaseListener instance that is interested in being notified before and after the processing
for standard phases of the request processing lifecycle. |
void |
attachWindow(jakarta.faces.context.FacesContext context)
Create or restore the |
void |
execute(jakarta.faces.context.FacesContext context)
Execute all of the phases of the request processing lifecycle, up to but not including the Render Response
phase, as described in the Jakarta Server Faces Specification, in the specified order.
|
jakarta.faces.event.PhaseListener[] |
getPhaseListeners()
Return the set of registered
PhaseListeners for this Lifecycle instance. |
void |
removePhaseListener(jakarta.faces.event.PhaseListener listener)
Deregister an existing
PhaseListener instance that is no longer interested in being notified before and after
the processing for standard phases of the request processing lifecycle. |
void |
render(jakarta.faces.context.FacesContext context)
Execute the Render Response phase of the request processing lifecycle, unless the
responseComplete() method has been called on the FacesContext instance associated with the
current request. |
public LifecycleImpl()
public LifecycleImpl(jakarta.faces.context.FacesContext context)
public void attachWindow(jakarta.faces.context.FacesContext context)
jakarta.faces.lifecycle.Lifecycle
Create or restore the ClientWindow to be used to display the UIViewRoot for
this run through the lifecycle. See the class documentation for ClientWindow for an overview of the feature.
If ExternalContext.getClientWindow() returns null, create a new instance of
ClientWindow using the ClientWindowFactory. If the result is non-null, call
ClientWindow.decode(jakarta.faces.context.FacesContext) on it. Store the new ClientWindow by
calling ExternalContext.setClientWindow(jakarta.faces.lifecycle.ClientWindow).
attachWindow in class jakarta.faces.lifecycle.Lifecyclecontext - the FacesContext for this request.public void execute(jakarta.faces.context.FacesContext context)
throws jakarta.faces.FacesException
jakarta.faces.lifecycle.Lifecycle
Execute all of the phases of the request processing lifecycle, up to but not including the Render Response
phase, as described in the Jakarta Server Faces Specification, in the specified order. The processing flow can be
affected (by the application, by components, or by event listeners) by calls to the renderResponse() or
responseComplete() methods of the FacesContext instance associated with the current request.
execute in class jakarta.faces.lifecycle.Lifecyclecontext - FacesContext for the request to be processedjakarta.faces.FacesException - if thrown during the execution of the request processing lifecyclepublic void render(jakarta.faces.context.FacesContext context)
throws jakarta.faces.FacesException
jakarta.faces.lifecycle.Lifecycle
Execute the Render Response phase of the request processing lifecycle, unless the
responseComplete() method has been called on the FacesContext instance associated with the
current request.
render in class jakarta.faces.lifecycle.Lifecyclecontext - FacesContext for the request being processedjakarta.faces.FacesException - if an exception is thrown during the execution of the request processing lifecyclepublic void addPhaseListener(jakarta.faces.event.PhaseListener listener)
jakarta.faces.lifecycle.Lifecycle
Register a new PhaseListener instance that is interested in being notified before and after the processing
for standard phases of the request processing lifecycle.
addPhaseListener in class jakarta.faces.lifecycle.Lifecyclelistener - The PhaseListener to be registeredpublic jakarta.faces.event.PhaseListener[] getPhaseListeners()
jakarta.faces.lifecycle.Lifecycle
Return the set of registered PhaseListeners for this Lifecycle instance. If there are no registered
listeners, a zero-length array is returned.
getPhaseListeners in class jakarta.faces.lifecycle.LifecyclePhaseListenerspublic void removePhaseListener(jakarta.faces.event.PhaseListener listener)
jakarta.faces.lifecycle.Lifecycle
Deregister an existing PhaseListener instance that is no longer interested in being notified before and after
the processing for standard phases of the request processing lifecycle. If no such listener instance has been
registered, no action is taken.
removePhaseListener in class jakarta.faces.lifecycle.Lifecyclelistener - The PhaseListener to be deregisteredCopyright © 2010–2022 JBoss by Red Hat. All rights reserved.