org.springframework.webflow.engine.support
Class SimpleFlowVariable
java.lang.Object
org.springframework.webflow.engine.AnnotatedObject
org.springframework.webflow.engine.FlowVariable
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
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SimpleFlowVariable
public SimpleFlowVariable(java.lang.String name,
java.lang.Class variableClass,
ScopeType scope)
- Creates a new simple flow variable.
- Parameters:
name
- the variable namevariableClass
- the concrete variable classscope
- the variable scope
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.