Provides a simple implementation of Lifecycle that can be
subclassed by developers wishing to provide specialized behavior to an existing Lifecycle instance. The
default implementation of all methods is to call through to the wrapped Lifecycle.
Usage: extend this class and push the implementation being wrapped to the constructor and use getWrapped to
access the instance being wrapped.
| Access | Constructor and Description |
|---|---|
| public | |
| public | LifecycleWrapper(Lifecycle
The implementation being wrapped. wrapped)If this lifecycle has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPhaseListener(PhaseListener
The listener)PhaseListener to be registeredImplements abstract jakarta.
Register a new |
| public void | attachWindow(FacesContext
the context)FacesContext for this request.Overrides jakarta.
Create or restore the |
| public void | execute(FacesContext
FacesContext for the request to be processed context)Implements abstract jakarta. 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 PhaseListener[] | getPhaseListeners()
Implements abstract jakarta.
Return the set of registered |
| public Lifecycle | getWrapped()
Implements jakarta. A class that implements this interface uses this method to return an instance of the class being wrapped. |
| public void | removePhaseListener(PhaseListener
The listener)PhaseListener to be deregisteredImplements abstract jakarta.
Deregister an existing |
| public void | render(FacesContext
FacesContext for the request being processed context)Implements abstract jakarta.
Execute the Render Response phase of the request processing lifecycle, unless the
|
| wrapped | back to summary |
|---|---|
| private Lifecycle wrapped | |
| LifecycleWrapper | back to summary |
|---|---|
| public LifecycleWrapper()
Deprecated Use the other constructor taking the implementation being wrapped.
| |
| LifecycleWrapper | back to summary |
|---|---|
| public LifecycleWrapper(Lifecycle wrapped)
If this lifecycle has been decorated, the implementation doing the decorating should push the implementation being
wrapped to this constructor. The
| |
| addPhaseListener | back to summary |
|---|---|
| public void addPhaseListener(PhaseListener listener) Implements abstract jakarta. Doc from jakarta.
Register a new
| |
| attachWindow | back to summary |
|---|---|
| public void attachWindow(FacesContext context) Overrides jakarta. Doc from jakarta.
Create or restore the
| |
| execute | back to summary |
|---|---|
| public void execute(FacesContext context) throws FacesException Implements abstract jakarta. Doc from jakarta.
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 PhaseListener[] getPhaseListeners() Implements abstract jakarta. Doc from jakarta.
Return the set of registered
| |
| getWrapped | back to summary |
|---|---|
| public Lifecycle getWrapped() Implements jakarta. Doc from jakarta. A class that implements this interface uses this method to return an instance of the class being wrapped. | |
| removePhaseListener | back to summary |
|---|---|
| public void removePhaseListener(PhaseListener listener) Implements abstract jakarta. Doc from jakarta.
Deregister an existing
| |
| render | back to summary |
|---|---|
| public void render(FacesContext context) throws FacesException Implements abstract jakarta. Doc from jakarta.
Execute the Render Response phase of the request processing lifecycle, unless the
| |