Interface FlowModelHolder

All Known Implementing Classes:
DefaultFlowModelHolder

public interface FlowModelHolder
A holder holding a reference to a Flow model. Provides a layer of indirection, enabling things like "hot-reloadable" flow models.
Author:
Keith Donald, Scott Andrews
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the flow model held by this holder.
    org.springframework.core.io.Resource
    Returns the underlying resource defining the flow model.
    boolean
    Has the underlying flow model changed since it was last accessed via a call to getFlowModel().
    void
    Refresh the flow model held by this holder.
  • Method Details

    • getFlowModel

      FlowModel getFlowModel()
      Returns the flow model held by this holder. Calling this method the first time may trigger flow model assembly.
    • hasFlowModelChanged

      boolean hasFlowModelChanged()
      Has the underlying flow model changed since it was last accessed via a call to getFlowModel().
      Returns:
      true if yes, false if not
    • getFlowModelResource

      org.springframework.core.io.Resource getFlowModelResource()
      Returns the underlying resource defining the flow model.
      Returns:
      the flow model resource
    • refresh

      void refresh()
      Refresh the flow model held by this holder. Calling this method typically triggers flow re-assembly, which may include a refresh from an externalized resource such as a file.