org.springframework.webflow.executor.jsf
Class FlowExecutionVariableResolver
java.lang.Object
javax.faces.el.VariableResolver
org.springframework.webflow.executor.jsf.FlowExecutionVariableResolver
public class FlowExecutionVariableResolver
- extends javax.faces.el.VariableResolver
Custom variable resolver that resolves to a thread-bound FlowExecution object for binding expressions prefixed with a
FLOW_EXECUTION_VARIABLE_NAME
. For instance "flowExecution.conversationScope.myProperty".
This class is designed to be used with a FlowExecutionPropertyResolver
.
This class is a more flexible alternative to the FlowVariableResolver
which is expected to be used ONLY with
a FlowPropertyResolver
to resolve flow scope variables ONLY. It is more flexible because it provides access
to any scope structure of a FlowExecution
object.
- Author:
- Keith Donald
Constructor Summary |
FlowExecutionVariableResolver(javax.faces.el.VariableResolver resolverDelegate)
Creates a new flow executon variable resolver that resolves the current FlowExecution object. |
Method Summary |
protected javax.faces.el.VariableResolver |
getResolverDelegate()
Returns the variable resolver this resolver delegates to if necessary. |
java.lang.Object |
resolveVariable(javax.faces.context.FacesContext context,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FLOW_EXECUTION_VARIABLE_NAME
public static final java.lang.String FLOW_EXECUTION_VARIABLE_NAME
- Name of the flow execution variable.
- See Also:
- Constant Field Values
FlowExecutionVariableResolver
public FlowExecutionVariableResolver(javax.faces.el.VariableResolver resolverDelegate)
- Creates a new flow executon variable resolver that resolves the current FlowExecution object.
- Parameters:
resolverDelegate
- the resolver to delegate to when the variable is not named "flowExecution".
getResolverDelegate
protected final javax.faces.el.VariableResolver getResolverDelegate()
- Returns the variable resolver this resolver delegates to if necessary.
resolveVariable
public java.lang.Object resolveVariable(javax.faces.context.FacesContext context,
java.lang.String name)
throws javax.faces.el.EvaluationException
- Specified by:
resolveVariable
in class javax.faces.el.VariableResolver
- Throws:
javax.faces.el.EvaluationException
Copyright © 2004-2007. All Rights Reserved.