|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.webflow.executor.jsf.FlowExecutionHolderUtils
public class FlowExecutionHolderUtils
A static utility class for accessing the current flow execution holder.
By default, the current flow execution holder is stored associated with the current thread in the
FacesContext's ExternalContext.getRequestMap().
| Constructor Summary | |
|---|---|
FlowExecutionHolderUtils()
|
|
| Method Summary | |
|---|---|
static void |
cleanupCurrentFlowExecution(javax.faces.context.FacesContext context)
Cleans up the current flow execution in the faces context if necessary. |
static FlowExecution |
getCurrentFlowExecution(javax.faces.context.FacesContext context)
Returns the current flow execution in the given faces context. |
static FlowExecutionHolder |
getFlowExecutionHolder(javax.faces.context.FacesContext context)
Returns the current flow execution holder for the given faces context. |
static FlowExecution |
getRequiredCurrentFlowExecution(javax.faces.context.FacesContext context)
Returns the current required flow execution in the given faces context. |
static boolean |
isFlowExecutionRestored(javax.faces.context.FacesContext context)
Returns true if the flow execution has been restored in the current thread. |
static void |
setFlowExecutionHolder(FlowExecutionHolder holder,
javax.faces.context.FacesContext context)
Sets the current flow execution holder for the given faces context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlowExecutionHolderUtils()
| Method Detail |
|---|
public static FlowExecutionHolder getFlowExecutionHolder(javax.faces.context.FacesContext context)
context - faces context
null if none set.
public static void setFlowExecutionHolder(FlowExecutionHolder holder,
javax.faces.context.FacesContext context)
holder - the flow execution holdercontext - faces contextpublic static boolean isFlowExecutionRestored(javax.faces.context.FacesContext context)
context - the faces context
public static FlowExecution getCurrentFlowExecution(javax.faces.context.FacesContext context)
context - faces context
null if no execution is bound
public static FlowExecution getRequiredCurrentFlowExecution(javax.faces.context.FacesContext context)
throws javax.faces.el.EvaluationException
context - faces context
javax.faces.el.EvaluationException - if no flow execution was boundpublic static void cleanupCurrentFlowExecution(javax.faces.context.FacesContext context)
context - the faces context
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||