Lifecycle manages the processing of the entire lifecycle of a particular Jakarta Faces request. It is responsible for executing all of the phases that have been defined by the Jakarta Faces Specification, in the specified order, unless otherwise directed by activities that occurred during the execution of each phase.
An instance of Lifecycle is created by calling the getLifecycle() method of
LifecycleFactory, for a specified lifecycle identifier. Because this instance is shared across multiple
simultaneous requests, it must be implemented in a thread-safe manner.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | addPhaseListener(PhaseListener
The listener)PhaseListener to be registered
Register a new |
| public void | attachWindow(FacesContext
the context)FacesContext for this request.
Create or restore the |
| public abstract void | execute(FacesContext
FacesContext for the request to be processed context)Execute all of the phases of the request processing lifecycle, up to but not including the Render Response phase, as described in section 2 "Request Processing Lifecycle" of the Jakarta Faces Specification Document, in the specified order. |
| public abstract PhaseListener[] | Returns: the set of registeredPhaseListeners
Return the set of registered |
| public abstract void | removePhaseListener(PhaseListener
The listener)PhaseListener to be deregistered
Deregister an existing |
| public abstract void | render(FacesContext
FacesContext for the request being processed context)
Execute the Render Response phase of the request processing lifecycle, unless the
|
| Lifecycle | back to summary |
|---|---|
| public Lifecycle() | |
| addPhaseListener | back to summary |
|---|---|
| public abstract void addPhaseListener(PhaseListener listener)
Register a new
| |
| attachWindow | back to summary |
|---|---|
| public void attachWindow(FacesContext context)
Create or restore the
| |
| execute | back to summary |
|---|---|
| public abstract void execute(FacesContext context) throws FacesException
Execute all of the phases of the request processing lifecycle, up to but not including the Render Response
phase, as described in section 2 "Request Processing Lifecycle" of the Jakarta Faces Specification Document, in the specified order.
The processing flow can be affected (by the application, by components, or by event listeners) by calls to the
| |
| getPhaseListeners | back to summary |
|---|---|
| public abstract PhaseListener[] getPhaseListeners()
Return the set of registered
| |
| removePhaseListener | back to summary |
|---|---|
| public abstract void removePhaseListener(PhaseListener listener)
Deregister an existing
| |
| render | back to summary |
|---|---|
| public abstract void render(FacesContext context) throws FacesException
Execute the Render Response phase of the request processing lifecycle, unless the
| |