|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.lifecycle.Lifecycle de.mindmatters.faces.lifecycle.LifecycleImpl
public final class LifecycleImpl
Lifecycle manages the processing of the entire lifecycle of a particular JavaServer Faces request. It is responsible for executing all of the phases that have been defined by the JavaServer Faces Specification, in the specified order, unless otherwise directed by activities that occurred during the execution of each phase.
This implemetation delegates the execution of each phase to an instance of
Phase
. At least a Lifecycle should execute phases as follows:
Phase | default implementation |
---|---|
RESTORE_VIEW | RestoreViewPhase |
APPLY_REQUEST_VALUES | ApplyRequestValuesPhase |
PROCESS_VALIDATIONS | ProcessValidationsPhase |
UPDATE_MODEL_VALUES | UpdateModelValuesPhase |
INVOKE_APPLICATION | InvokeApplicationPhase |
RENDER_RESPONSE | RenderResponsePhase |
Phase
,
Phase.execute(FacesContext)
Field Summary | |
---|---|
static java.lang.String |
JSF_SPRING_LIFECYCLE_ID
The lifecycle-id of the Lifecycle which processes the entire lifecycle of a particular JavaServer Faces request mapped against the FacesDispatcherServlet
(which integrates SpringMVC into JSF). |
protected org.apache.commons.logging.Log |
log
For logging. |
Constructor Summary | |
---|---|
LifecycleImpl(Phase[] executionPhases,
Phase renderResponsePhase)
Creates a lifecycle with the given executionPhases and
renderResponsePhase . |
Method Summary | |
---|---|
void |
addPhaseListener(PhaseListener listener)
|
static Lifecycle |
createDefaultLifecycle()
Factory method creating the default Lifecycle for a particular JavaServer Faces request. |
void |
execute(FacesContext context)
|
PhaseListener[] |
getPhaseListeners()
|
void |
removePhaseListener(PhaseListener listener)
|
void |
render(FacesContext context)
|
void |
setExecutionPhases(Phase[] executionPhases)
Sets the phases to execute. |
void |
setRenderResponsePhase(Phase renderResponsePhase)
Sets the render-response phase. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String JSF_SPRING_LIFECYCLE_ID
FacesDispatcherServlet
(which integrates SpringMVC into JSF).
protected final org.apache.commons.logging.Log log
Constructor Detail |
---|
public LifecycleImpl(Phase[] executionPhases, Phase renderResponsePhase)
executionPhases
and
renderResponsePhase
.
executionPhases
- phases to executerenderResponsePhase
- for renderingMethod Detail |
---|
public static Lifecycle createDefaultLifecycle()
LifecycleFactory.DEFAULT_LIFECYCLE
public void execute(FacesContext context)
execute
in class Lifecycle
public void render(FacesContext context)
render
in class Lifecycle
public void addPhaseListener(PhaseListener listener)
addPhaseListener
in class Lifecycle
public PhaseListener[] getPhaseListeners()
getPhaseListeners
in class Lifecycle
public void removePhaseListener(PhaseListener listener)
removePhaseListener
in class Lifecycle
public void setExecutionPhases(Phase[] executionPhases)
executionPhases
- phases to executeLifecycle.execute(FacesContext)
public void setRenderResponsePhase(Phase renderResponsePhase)
renderResponsePhase
- for renderingLifecycle.render(FacesContext)
|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |