org.springframework.webflow.engine.support
Class SimpleFlowVariable

java.lang.Object
  extended by org.springframework.webflow.engine.AnnotatedObject
      extended by org.springframework.webflow.engine.FlowVariable
          extended by org.springframework.webflow.engine.support.SimpleFlowVariable
All Implemented Interfaces:
java.io.Serializable, Annotated

public class SimpleFlowVariable
extends FlowVariable

A trivial concrete flow variable subclass that creates new variable values using Java reflection.

Author:
Keith Donald
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.springframework.webflow.engine.AnnotatedObject
CAPTION_PROPERTY, DESCRIPTION_PROPERTY
 
Constructor Summary
SimpleFlowVariable(java.lang.String name, java.lang.Class variableClass, ScopeType scope)
          Creates a new simple flow variable.
 
Method Summary
protected  java.lang.Object createVariableValue(RequestContext context)
          Hook method that needs to be implemented by subclasses to calculate the value of this flow variable based on the information available in the request context.
 java.lang.Class getVariableClass()
          Returns the variable value class.
 
Methods inherited from class org.springframework.webflow.engine.FlowVariable
create, equals, getName, getScope, hashCode, toString
 
Methods inherited from class org.springframework.webflow.engine.AnnotatedObject
getAttributeMap, getAttributes, getCaption, getDescription, setCaption, setDescription
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleFlowVariable

public SimpleFlowVariable(java.lang.String name,
                          java.lang.Class variableClass,
                          ScopeType scope)
Creates a new simple flow variable.

Parameters:
name - the variable name
variableClass - the concrete variable class
scope - the variable scope
Method Detail

getVariableClass

public java.lang.Class getVariableClass()
Returns the variable value class.


createVariableValue

protected java.lang.Object createVariableValue(RequestContext context)
Description copied from class: FlowVariable
Hook method that needs to be implemented by subclasses to calculate the value of this flow variable based on the information available in the request context.

Specified by:
createVariableValue in class FlowVariable
Parameters:
context - the flow execution request context
Returns:
the flow variable value


Copyright © 2004-2007. All Rights Reserved.