org.springframework.webflow.executor.jsf
Class FlowVariableResolver

java.lang.Object
  extended by javax.faces.el.VariableResolver
      extended by org.springframework.webflow.executor.jsf.FlowVariableResolver

public class FlowVariableResolver
extends javax.faces.el.VariableResolver

Custom variable resolver that resolves the current FlowExecution object for binding expressions prefixed with FLOW_SCOPE_VARIABLE. For instance "flowScope.myBean.myProperty". Designed to be used in conjunction with FlowPropertyResolver only. This class is the original flow execution variable resolver implementation introduced in Spring Web Flow's JSF support available since 1.0. In general, prefer use of DelegatingFlowVariableResolver or FlowExecutionVariableResolver to this implementation as they are both considerably more flexible. This resolver should only be used with the FlowPropertyResolver which can only resolve flow-scoped variables. May be deprecated in a future release of Spring Web Flow.

Author:
Colin Sampaleanu

Field Summary
static java.lang.String FLOW_SCOPE_VARIABLE
          Name of the exposed flow scope variable ("flowScope").
 
Constructor Summary
FlowVariableResolver(javax.faces.el.VariableResolver resolverDelegate)
          Create a new FlowVariableResolver, using the given original VariableResolver.
 
Method Summary
protected  javax.faces.el.VariableResolver getResolverDelegate()
          Return the original VariableResolver that this resolver delegates to.
 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
 

Field Detail

FLOW_SCOPE_VARIABLE

public static final java.lang.String FLOW_SCOPE_VARIABLE
Name of the exposed flow scope variable ("flowScope").

See Also:
Constant Field Values
Constructor Detail

FlowVariableResolver

public FlowVariableResolver(javax.faces.el.VariableResolver resolverDelegate)
Create a new FlowVariableResolver, using the given original VariableResolver.

A JSF implementation will automatically pass its original resolver into the constructor of a configured resolver, provided that there is a corresponding constructor argument.

Parameters:
resolverDelegate - the original VariableResolver
Method Detail

getResolverDelegate

protected final javax.faces.el.VariableResolver getResolverDelegate()
Return the original VariableResolver that this resolver delegates to.


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.