public class LifecycleImpl extends Lifecycle
LifecycleImpl is the stock implementation of the standard Lifecycle in the JavaServer Faces RI.
| Constructor and Description |
|---|
LifecycleImpl() |
LifecycleImpl(FacesContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPhaseListener(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(FacesContext context)
Create or restore the |
void |
execute(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.
|
PhaseListener[] |
getPhaseListeners()
Return the set of registered
PhaseListeners for this
Lifecycle instance. |
void |
removePhaseListener(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(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(FacesContext context)
public void attachWindow(FacesContext context)
LifecycleCreate 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(javax.faces.context.FacesContext) on it.
Store the new ClientWindow by calling
ExternalContext.setClientWindow(javax.faces.lifecycle.ClientWindow).
attachWindow in class Lifecyclecontext - the FacesContext for this request.public void execute(FacesContext context) throws FacesException
LifecycleExecute 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 Lifecyclecontext - FacesContext for the request to be processedFacesException - if thrown during the execution of the
request processing lifecyclepublic void render(FacesContext context) throws FacesException
LifecycleExecute 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 Lifecyclecontext - FacesContext for the request being processedFacesException - if an exception is thrown during the execution
of the request processing lifecyclepublic void addPhaseListener(PhaseListener listener)
LifecycleRegister 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 Lifecyclelistener - The PhaseListener to be registeredpublic PhaseListener[] getPhaseListeners()
LifecycleReturn the set of registered PhaseListeners for this
Lifecycle instance. If there are no registered listeners,
a zero-length array is returned.
getPhaseListeners in class LifecyclePhaseListenerspublic void removePhaseListener(PhaseListener listener)
LifecycleDeregister 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 Lifecyclelistener - The PhaseListener to be deregisteredComments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.