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 .
author: Keith Donald
Method Summary
public static void
cleanupCurrentFlowExecution(FacesContext context) Cleans up the current flow execution in the faces context if necessary.
public static void cleanupCurrentFlowExecution(FacesContext context)(Code)
Cleans up the current flow execution in the faces context if necessary.
Specifically, handles unlocking the execution if necessary and setting the
holder to null.
Parameters: context - the faces context
getCurrentFlowExecution
public static FlowExecution getCurrentFlowExecution(FacesContext context)(Code)
Returns the current flow execution in the given faces context.
Parameters: context - faces context the flow execution or null if no execution is bound
Returns the current flow execution holder for the given faces context.
Parameters: context - faces context the flow execution holder, or null if none set.
Returns the key used to index the flow execution holder in the request
attributes.
getRequiredCurrentFlowExecution
public static FlowExecution getRequiredCurrentFlowExecution(FacesContext context) throws EvaluationException(Code)
Returns the current required flow execution in the given faces context.
Parameters: context - faces context the flow execution throws: EvaluationException - if no flow execution was bound
isFlowExecutionRestored
public static boolean isFlowExecutionRestored(FacesContext context)(Code)
Returns true if the flow execution has been restored in the current thread.
Parameters: context - the faces context true if restored, false otherwise