|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.webflow.executor.jsf.FlowPhaseListener
public class FlowPhaseListener
JSF phase listener that is responsible for managing a FlowExecution
object representing an active user conversation so that other JSF artifacts
that execute in different phases of the JSF lifecycle may have access to it.
This phase listener implements the following algorithm:
FlowExecution the user is
participating in if a call to
FlowExecutorArgumentHandler.extractFlowExecutionKey(ExternalContext)
returns a submitted flow execution identifier. Place the restored flow
execution in a holder that other JSF artifacts such as VariableResolvers,
PropertyResolvers, and NavigationHandlers may access during the request
lifecycle.
FlowExecutionRepository. Expose managed flow
execution attributes to the views before rendering.
| Nested Class Summary | |
|---|---|
static class |
FlowPhaseListener.DefaultViewIdMapper
Standard default view id resolver which uses the web flow view name as the jsf view id |
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
Logger, usable by subclasses. |
| Constructor Summary | |
|---|---|
FlowPhaseListener()
|
|
| Method Summary | |
|---|---|
void |
afterPhase(javax.faces.event.PhaseEvent event)
|
void |
beforePhase(javax.faces.event.PhaseEvent event)
|
protected LocalAttributeMap |
createInput(FlowExecution flowExecution,
ExternalContext context)
Factory method that creates the input attribute map for a newly created FlowExecution. |
FlowExecutorArgumentHandler |
getArgumentHandler()
Returns the argument handler used by this phase listener. |
javax.faces.event.PhaseId |
getPhaseId()
|
ViewIdMapper |
getViewIdMapper()
Returns the JSF view id resolver used by this phase listener. |
protected void |
prepareApplicationView(javax.faces.context.FacesContext facesContext,
FlowExecutionHolder holder)
|
protected void |
prepareResponse(JsfExternalContext context,
FlowExecutionHolder holder)
|
protected void |
restoreFlowExecution(javax.faces.context.FacesContext facesContext)
|
protected void |
saveFlowExecution(JsfExternalContext context,
FlowExecutionHolder holder)
|
void |
setArgumentHandler(FlowExecutorArgumentHandler argumentHandler)
Sets the argument handler to use. |
void |
setViewIdMapper(ViewIdMapper viewIdMapper)
Sets the JSF view id mapper used by this phase listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public FlowPhaseListener()
| Method Detail |
|---|
public FlowExecutorArgumentHandler getArgumentHandler()
public void setArgumentHandler(FlowExecutorArgumentHandler argumentHandler)
public ViewIdMapper getViewIdMapper()
public void setViewIdMapper(ViewIdMapper viewIdMapper)
public javax.faces.event.PhaseId getPhaseId()
getPhaseId in interface javax.faces.event.PhaseListenerpublic void beforePhase(javax.faces.event.PhaseEvent event)
beforePhase in interface javax.faces.event.PhaseListenerpublic void afterPhase(javax.faces.event.PhaseEvent event)
afterPhase in interface javax.faces.event.PhaseListenerprotected void restoreFlowExecution(javax.faces.context.FacesContext facesContext)
protected LocalAttributeMap createInput(FlowExecution flowExecution,
ExternalContext context)
FlowExecution. TODO - add support for input mappings here
flowExecution - the new flow execution (yet to be started)context - the external context
protected void prepareResponse(JsfExternalContext context,
FlowExecutionHolder holder)
protected void prepareApplicationView(javax.faces.context.FacesContext facesContext,
FlowExecutionHolder holder)
protected void saveFlowExecution(JsfExternalContext context,
FlowExecutionHolder holder)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||