|
Préférences
Moteurs de recherche
|
||||||||||||||||||
JavaTM Platform, Enterprise Edition, v 5.0
javax.faces.lifecycle
|
Constructor Summary | |
---|---|
Lifecycle()
|
Method Summary | |
---|---|
abstract 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. |
abstract 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 JavaServer Faces Specification, in the specified order. |
abstract PhaseListener[] |
getPhaseListeners()
Return the set of registered PhaseListener s for this
Lifecycle instance. |
abstract 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. |
abstract 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Lifecycle()
Method Detail |
---|
public abstract 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.
listener
- The PhaseListener
to be registered
NullPointerException
- if listener
is null
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 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
renderResponse()
or responseComplete()
methods of the FacesContext
instance associated with
the current request.
context
- FacesContext for the request to be processed
FacesException
- if thrown during the execution of the
request processing lifecycle
NullPointerException
- if context
is null
public abstract PhaseListener[] getPhaseListeners()
Return the set of registered PhaseListener
s for this
Lifecycle
instance. If there are no registered listeners,
a zero-length array is returned.
public abstract 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. If no such
listener instance has been registered, no action is taken.
listener
- The PhaseListener
to be deregistered
NullPointerException
- if listener
is null
public abstract void render(FacesContext context) throws FacesException
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.
context
- FacesContext for the request being processed
FacesException
- if an exception is thrown during the execution
of the request processing lifecycle
NullPointerException
- if context
is null