org.springframework.webflow.executor.jsf
Class FlowExecutionPropertyResolver

java.lang.Object
  extended by javax.faces.el.PropertyResolver
      extended by org.springframework.webflow.executor.jsf.AbstractFlowExecutionPropertyResolver
          extended by org.springframework.webflow.executor.jsf.FlowExecutionPropertyResolver

public class FlowExecutionPropertyResolver
extends AbstractFlowExecutionPropertyResolver

Custom property resolver that resolves supported properties of the current flow execution. Supports resolving all scopes as java.util.Maps: "flowScope", "conversationScope", and "flashScope". Also supports attribute searching when no scope prefix is specified. The search order is flash, flow, conversation.

Author:
Keith Donald

Constructor Summary
FlowExecutionPropertyResolver(javax.faces.el.PropertyResolver resolverDelegate)
          Creates a new flow executon property resolver that resolves flash, flow, and conversation scope attributes.
 
Method Summary
protected  java.lang.Object doGetAttribute(FlowExecution execution, java.lang.String attributeName)
          Gets the value of the flow execution attribute.
protected  java.lang.Class doGetAttributeType(FlowExecution execution, java.lang.String attributeName)
          Gets the type of value returned by the flow execution attribute.
protected  void doSetAttribute(FlowExecution execution, java.lang.String attributeName, java.lang.Object attributeValue)
          Sets the value of the flow execution attribute.
 
Methods inherited from class org.springframework.webflow.executor.jsf.AbstractFlowExecutionPropertyResolver
getResolverDelegate, getType, getType, getValue, getValue, isReadOnly, isReadOnly, setValue, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowExecutionPropertyResolver

public FlowExecutionPropertyResolver(javax.faces.el.PropertyResolver resolverDelegate)
Creates a new flow executon property resolver that resolves flash, flow, and conversation scope attributes.

Parameters:
resolverDelegate - the resolver to delegate to when the property is not a flow execution attribute
Method Detail

doGetAttributeType

protected java.lang.Class doGetAttributeType(FlowExecution execution,
                                             java.lang.String attributeName)
Description copied from class: AbstractFlowExecutionPropertyResolver
Gets the type of value returned by the flow execution attribute.

Specified by:
doGetAttributeType in class AbstractFlowExecutionPropertyResolver
Parameters:
execution - the flow execution
attributeName - the name of the attribute
Returns:
the type of value returned by the attribute

doGetAttribute

protected java.lang.Object doGetAttribute(FlowExecution execution,
                                          java.lang.String attributeName)
Description copied from class: AbstractFlowExecutionPropertyResolver
Gets the value of the flow execution attribute.

Specified by:
doGetAttribute in class AbstractFlowExecutionPropertyResolver
Parameters:
execution - the flow execution
attributeName - the name of the attribute
Returns:
the attribute value

doSetAttribute

protected void doSetAttribute(FlowExecution execution,
                              java.lang.String attributeName,
                              java.lang.Object attributeValue)
Description copied from class: AbstractFlowExecutionPropertyResolver
Sets the value of the flow execution attribute.

Specified by:
doSetAttribute in class AbstractFlowExecutionPropertyResolver
Parameters:
execution - the flow execution
attributeName - the name of the attribute
attributeValue - the attribute value


Copyright © 2004-2007. All Rights Reserved.