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 to a thread-bound FlowExecution object for binding expressions prefixed with FLOW_SCOPE_VARIABLE. For instance "flowScope.myBean.myProperty".

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)
          Check for the special "flow" variable first, then delegate to the original VariableResolver.
 
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
Check for the special "flow" variable first, then delegate to the original VariableResolver.

Specified by:
resolveVariable in class javax.faces.el.VariableResolver
Throws:
javax.faces.el.EvaluationException


Copyright © 2004-2006. All Rights Reserved.