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 Details

    • createInitialValue

      Object createInitialValue(RequestContext context)
      Creates the variable's initial value.
      Parameters:
      context - the currently executing flow request
      Returns:
      the value
    • restoreReferences

      void restoreReferences(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