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 javax. Register a new |
| public void | attachWindow(FacesContext
the context)FacesContext for this request.Overrides javax. Create or restore the |
| public void | execute(FacesContext
FacesContext for the request to be processed context)Implements abstract javax. Execute all of the phases of the request processing lifecycle, up to but not including the Render Response phase, as described in the JavaServer Faces Specification, in the specified order. |
| public PhaseListener[] | getPhaseListeners()
Implements abstract javax. Return the set of registered |
| public Lifecycle | getWrapped()
Implements javax. 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 javax. Deregister an existing |
| public void | render(FacesContext
FacesContext for the request being processed context)Implements abstract javax. 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 javax. Doc from javax. Register a new
| |
| attachWindow | back to summary |
|---|---|
| public void attachWindow(FacesContext context) Overrides javax. Doc from javax. Create or restore the
| |
| execute | back to summary |
|---|---|
| public void execute(FacesContext context) throws FacesException Implements abstract javax. Doc from javax. Execute all of the phases of the request processing lifecycle,
up to but not including the Render Response phase,
as described in the JavaServer 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
| |
| getPhaseListeners | back to summary |
|---|---|
| public PhaseListener[] getPhaseListeners() Implements abstract javax. Doc from javax. Return the set of registered
| |
| getWrapped | back to summary |
|---|---|
| public Lifecycle getWrapped() Implements javax. Doc from javax. 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 javax. Doc from javax. Deregister an existing
| |
| render | back to summary |
|---|---|
| public void render(FacesContext context) throws FacesException Implements abstract javax. Doc from javax. Execute the Render Response phase of the request
processing lifecycle, unless the
| |