D.7 Package javax.faces.lifecycle
An instance of a subclass of
this abstract class
manages the request processing lifecycle.
Synopsis
Class name:
|
javax.faces.lifecycle.Lifecycle
|
Extends:
|
None
|
Implements:
|
None
|
Constructors
- public Lifecycle()
-
Creates an instance.
Methods
- public abstract void addPhaseListener(javax.faces.event.PhaseListener listener)
-
Adds the PhaseListener to the list of listeners
for the PhaseEvent this instance fires.
- public abstract void execute(javax.faces.context.FacesContext context)
-
Executes all lifecycle phases up to but not including the Render
Response phase, by invoking the phase processing methods on the root
component as described in Appendix B.
- public abstract javax.faces.event.PhaseListener[] getPhaseListeners()
-
Returns all PhaseListener instances registered
with this instance or an empty array if none is registered.
- public abstract void removePhaseListener(javax.faces.event.PhaseListener l)
-
Removes the PhaseListener from the list of
listeners for the PhaseEvent this instance fires.
- public abstract void render(javax.faces.context.FacesContext context)
-
Executes the Render Response lifecycle, unless the
responseComplete() method has been called on the
provided FacesContext.
An instance of a subclass of
this abstract class
is a factory for a Lifecycle instance for a
request.
Synopsis
Class name:
|
javax.faces.lifecycle.LifecycleFactory
|
Extends:
|
None
|
Implements:
|
None
|
Fields
- public static final String DEFAULT_LIFE_CYCLE
-
The default lifecycle identifier: DEFAULT.
Constructors
- public LifecycleFactory()
-
Creates an instance.
Methods
- public abstract void addLifecycle(String lifecycleId,
- javax.faces.lifecycle.Lifecycle lifecycle)
-
Adds the provided Lifecycle instance mapped to the
specified ID.
- public abstract javax.faces.lifecycle.Lifecycle getLifecycle(String lifecycleId)
-
Returns a Lifecycle instance for the specified
lifecycle ID.
- public abstract java.util.Iterator getLifecycleIds()
-
Returns an Iterator over the IDs for all available
Lifecycle instances.
|