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
Modifier and TypeMethodDescriptioncreateInitialValue
(RequestContext context) Creates the variable's initial value.void
restoreReferences
(Object value, RequestContext context) Restore any references the variable's value needs to other objects.
-
Method Details
-
createInitialValue
Creates the variable's initial value.- Parameters:
context
- the currently executing flow request- Returns:
- the value
-
restoreReferences
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 valuecontext
- the currently executing flow request
-