Spring Web Flow

org.springframework.webflow.engine
Interface VariableValueFactory

All Known Implementing Classes:
BeanFactoryVariableValueFactory

public interface VariableValueFactory

A strategy that encapsulates the source of a flow variable value.

Author:
Keith Donald

Method Summary
 java.lang.Object createInitialValue(RequestContext context)
          Creates the variable's initial value.
 void restoreReferences(java.lang.Object value, RequestContext context)
          Restore any references the variable's value needs to other objects.
 

Method Detail

createInitialValue

java.lang.Object createInitialValue(RequestContext context)
Creates the variable's initial value.

Parameters:
context - the currently executing flow request
Returns:
the value

restoreReferences

void restoreReferences(java.lang.Object value,
                       RequestContext context)
Restore any references the variable's value needs to other objects. Such references may have been lost during deserialization, for example, and need to be restored.

Parameters:
value - the current variable value
context - the currently executing flow request

Spring Web Flow